Rémi Bernon : include: Define DECLSPEC_SELECTANY on MinGW.
Alexandre Julliard
julliard at winehq.org
Mon Feb 1 16:13:07 CST 2021
Module: wine
Branch: master
Commit: 9138508a9430c42be040b01855359283276b3f45
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9138508a9430c42be040b01855359283276b3f45
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Fri Jan 29 09:50:07 2021 +0100
include: Define DECLSPEC_SELECTANY on MinGW.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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
More information about the wine-cvs
mailing list