From e4ec9322dc6b05bab1138cbb5ce621fd763f89a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Sun, 26 Dec 2021 22:11:30 +0100 Subject: [PATCH] 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. --- lib/types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2