https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ead2156a29d507c8c942f637f1210bc68568556a

commit ead2156a29d507c8c942f637f1210bc68568556a
Author:     Timo Kreuzer <[email protected]>
AuthorDate: Sat Apr 27 23:31:03 2019 +0200
Commit:     HervĂ© Poussineau <[email protected]>
CommitDate: Mon May 27 13:22:40 2019 +0200

    [MINGW32] Add some definitions to fix building with GLIBCXX
---
 sdk/include/crt/_mingw.h | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/sdk/include/crt/_mingw.h b/sdk/include/crt/_mingw.h
index 7aa8c21cb7..1d79edaff1 100644
--- a/sdk/include/crt/_mingw.h
+++ b/sdk/include/crt/_mingw.h
@@ -130,6 +130,22 @@
 #define __MINGW_ATTRIB_DEPRECATED
 #endif
 
+#if  __MINGW_GNUC_PREREQ (3, 1)
+#define __MINGW_ATTRIB_DEPRECATED_SEC_WARN //__attribute__ ((__deprecated__))
+#elif __MINGW_MSC_PREREQ(12, 0)
+#define __MINGW_ATTRIB_DEPRECATED_SEC_WARN //__declspec(deprecated)
+#else
+#define __MINGW_ATTRIB_DEPRECATED_SEC_WARN
+#endif
+
+#if  __MINGW_GNUC_PREREQ (3, 1)
+#define __MINGW_ATTRIB_DEPRECATED_MSVC2005 //__attribute__ ((__deprecated__))
+#elif __MINGW_MSC_PREREQ(12, 0)
+#define __MINGW_ATTRIB_DEPRECATED_MSVC2005 //__declspec(deprecated)
+#else
+#define __MINGW_ATTRIB_DEPRECATED_MSVC2005
+#endif
+
 #if  __MINGW_GNUC_PREREQ (3, 3)
 #define __MINGW_NOTHROW __attribute__ ((__nothrow__))
 #elif __MINGW_MSC_PREREQ(12, 0) && defined (__cplusplus)
@@ -225,6 +241,15 @@ allow GCC to optimize away some EH unwind code, at least 
in DW2 case.  */
 #endif
 #endif /* DECLSPEC_HOTPATCH */
 
+#ifdef __cplusplus
+#  define __mingw_ovr  inline __cdecl
+#elif defined (__GNUC__)
+#  define __mingw_ovr static \
+      __attribute__ ((__unused__)) __inline__ __cdecl
+#else
+#  define __mingw_ovr static __cdecl
+#endif /* __cplusplus */
+
 #include "_mingw_mac.h"
 
 #endif /* !_INC_MINGW */

Reply via email to