From 3138732eb50a586c994847c07f00be12264f1da0 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 24 Feb 2024 16:08:13 +0100 Subject: libpci: win32-cfgmgr32: Define mMD_Prefetchable constant Older version of cfgmgr32.h header file use define name fMD_Prefetchable instead of mMD_Prefetchable. Define constant to fix compilation. --- lib/win32-cfgmgr32.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/win32-cfgmgr32.c b/lib/win32-cfgmgr32.c index a001187..37cf2f7 100644 --- a/lib/win32-cfgmgr32.c +++ b/lib/win32-cfgmgr32.c @@ -81,6 +81,10 @@ #define fMD_MEMORY_BAR 0x0080 #endif +#ifndef mMD_Prefetchable +#define mMD_Prefetchable fMD_Prefetchable +#endif + /* * Unfortunately MinGW32 toolchain does not provide import library for these * cfgmgr32.dll functions. So resolve pointers to these functions at runtime. -- cgit 1.2.3-korg