[PATCH 3/4] include: Define DECLSPEC_SELECTANY on MinGW.
Rémi Bernon
rbernon at codeweavers.com
Fri Jan 29 02:50:07 CST 2021
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
include/winnt.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/winnt.h b/include/winnt.h
index 5b3efe61385..bb045fa2745 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -110,6 +110,8 @@ extern "C" {
#ifndef DECLSPEC_SELECTANY
#if defined(_MSC_VER) && (_MSC_VER >= 1100)
#define DECLSPEC_SELECTANY __declspec(selectany)
+#elif defined(__MINGW32__)
+#define DECLSPEC_SELECTANY __attribute__((selectany))
#else
#define DECLSPEC_SELECTANY
#endif
--
2.30.0
More information about the wine-devel
mailing list