mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 05:55:48 +00:00
[MINGW32] Add some definitions to fix building with GLIBCXX
This commit is contained in:
parent
81bdf4e360
commit
ead2156a29
1 changed files with 25 additions and 0 deletions
|
@ -130,6 +130,22 @@
|
||||||
#define __MINGW_ATTRIB_DEPRECATED
|
#define __MINGW_ATTRIB_DEPRECATED
|
||||||
#endif
|
#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)
|
#if __MINGW_GNUC_PREREQ (3, 3)
|
||||||
#define __MINGW_NOTHROW __attribute__ ((__nothrow__))
|
#define __MINGW_NOTHROW __attribute__ ((__nothrow__))
|
||||||
#elif __MINGW_MSC_PREREQ(12, 0) && defined (__cplusplus)
|
#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
|
||||||
#endif /* DECLSPEC_HOTPATCH */
|
#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"
|
#include "_mingw_mac.h"
|
||||||
|
|
||||||
#endif /* !_INC_MINGW */
|
#endif /* !_INC_MINGW */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue