]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: For PCI_OS_WINDOWS include windows.h instead of windef.h
authorPali Rohár <pali@kernel.org>
Sun, 26 Dec 2021 21:11:30 +0000 (22:11 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 10 Feb 2022 11:58:17 +0000 (12:58 +0100)
According to Win32 API guidelines applications should include <windows.h>
instead of <windef.h>. This change fixes compilation under MSVC as MSVC
<windef.h> header file expects that some other Win32 header files from
<window.h> are already included.

lib/types.h

index c6b6152e7204619e3b497df3d5e23146f8caec9a..6fdfd099f39ad8bfe56a2dda379a8fe94901af09 100644 (file)
@@ -11,8 +11,8 @@
 #ifndef PCI_HAVE_Uxx_TYPES
 
 #ifdef PCI_OS_WINDOWS
-/* On Windows compilers, use <windef.h> */
-#include <windef.h>
+/* On Windows compilers, use <windows.h> */
+#include <windows.h>
 typedef BYTE u8;
 typedef WORD u16;
 typedef DWORD u32;