From: Pali Rohár Date: Sat, 24 Feb 2024 15:08:13 +0000 (+0100) Subject: libpci: win32-cfgmgr32: Define mMD_Prefetchable constant X-Git-Tag: v3.11.0~7 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3138732eb50a586c994847c07f00be12264f1da0;p=pciutils.git 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. --- 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.