From: Pali Rohár Date: Sun, 26 Dec 2021 21:11:30 +0000 (+0100) Subject: libpci: For PCI_OS_WINDOWS include windows.h instead of windef.h X-Git-Tag: v3.8.0~50 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=e4ec9322dc6b05bab1138cbb5ce621fd763f89a0;p=pciutils.git libpci: For PCI_OS_WINDOWS include windows.h instead of windef.h According to Win32 API guidelines applications should include instead of . This change fixes compilation under MSVC as MSVC header file expects that some other Win32 header files from are already included. --- diff --git a/lib/types.h b/lib/types.h index c6b6152..6fdfd09 100644 --- a/lib/types.h +++ b/lib/types.h @@ -11,8 +11,8 @@ #ifndef PCI_HAVE_Uxx_TYPES #ifdef PCI_OS_WINDOWS -/* On Windows compilers, use */ -#include +/* On Windows compilers, use */ +#include typedef BYTE u8; typedef WORD u16; typedef DWORD u32;