[MINGW32] Add some definitions to fix building with GLIBCXX

This commit is contained in:
Timo Kreuzer 2019-04-27 23:31:03 +02:00 committed by Hervé Poussineau
parent 81bdf4e360
commit ead2156a29

View file

@ -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 */