[MINGW32] Add some definitions to fix building with GLIBCXX
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 27 Apr 2019 21:31:03 +0000 (23:31 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 27 May 2019 11:22:40 +0000 (13:22 +0200)
sdk/include/crt/_mingw.h

index 7aa8c21..1d79eda 100644 (file)
 #define __MINGW_ATTRIB_DEPRECATED
 #endif
 
 #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)
 #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 */
 
 #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 */
 #include "_mingw_mac.h"
 
 #endif /* !_INC_MINGW */