From: Timo Kreuzer Date: Sat, 27 Apr 2019 21:31:03 +0000 (+0200) Subject: [MINGW32] Add some definitions to fix building with GLIBCXX X-Git-Tag: 0.4.14-dev~952 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ead2156a29d507c8c942f637f1210bc68568556a [MINGW32] Add some definitions to fix building with GLIBCXX --- diff --git a/sdk/include/crt/_mingw.h b/sdk/include/crt/_mingw.h index 7aa8c21cb7b..1d79edaff1c 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 */