aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2024-02-24 16:08:13 +0100
committerMartin Mares <mj@ucw.cz>2024-02-24 20:47:05 +0100
commit3138732eb50a586c994847c07f00be12264f1da0 (patch)
tree64ddba862050c4cd8506670c1821bfbba49eef87
parent64155dd0405d68b258512c386aa52ea42549d946 (diff)
downloadpciutils-3138732eb50a586c994847c07f00be12264f1da0.tar.gz
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.
-rw-r--r--lib/win32-cfgmgr32.c4
1 files changed, 4 insertions, 0 deletions
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.