]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: win32-cfgmgr32: Define mMD_Prefetchable constant
authorPali Rohár <pali@kernel.org>
Sat, 24 Feb 2024 15:08:13 +0000 (16:08 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 24 Feb 2024 19:47:05 +0000 (20:47 +0100)
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

index a001187901486ec88fe559d63d93d94739f22d9b..37cf2f741369b75bb14284ebe07922629b6aeb4f 100644 (file)
 #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.