* include/_mingw.h (__MINGW_NOTHROW): Define.
This commit is contained in:
parent
a71ecb55de
commit
3d7e738f72
|
@ -1,3 +1,7 @@
|
||||||
|
2007-06-22 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
* include/_mingw.h (__MINGW_NOTHROW): Define.
|
||||||
|
|
||||||
2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
|
2007-06-18 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
* include/stdio.h (vsnprintf): Remove inline definition.
|
* include/stdio.h (vsnprintf): Remove inline definition.
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
#ifndef __MINGW_H
|
#ifndef __MINGW_H
|
||||||
#define __MINGW_H
|
#define __MINGW_H
|
||||||
|
|
||||||
|
#if __GNUC__ >= 3
|
||||||
|
#pragma GCC system_header
|
||||||
|
#endif
|
||||||
|
|
||||||
/* These are defined by the user (or the compiler)
|
/* These are defined by the user (or the compiler)
|
||||||
to specify how identifiers are imported from a DLL.
|
to specify how identifiers are imported from a DLL.
|
||||||
|
@ -79,8 +82,14 @@
|
||||||
# define _CRTIMP
|
# define _CRTIMP
|
||||||
# endif
|
# endif
|
||||||
# endif /* __declspec */
|
# endif /* __declspec */
|
||||||
|
|
||||||
|
/*
|
||||||
|
The next two defines can cause problems if user code adds the __cdecl attribute
|
||||||
|
like so:
|
||||||
|
void __attribute__ ((__cdecl)) foo(void);
|
||||||
|
*/
|
||||||
# ifndef __cdecl
|
# ifndef __cdecl
|
||||||
# define __cdecl __attribute__ ((__cdecl__))
|
# define __cdecl __attribute__ ((__cdecl__))
|
||||||
# endif
|
# endif
|
||||||
# ifndef __stdcall
|
# ifndef __stdcall
|
||||||
# define __stdcall __attribute__ ((__stdcall__))
|
# define __stdcall __attribute__ ((__stdcall__))
|
||||||
|
@ -164,6 +173,16 @@
|
||||||
#define __MINGW_ATTRIB_DEPRECATED
|
#define __MINGW_ATTRIB_DEPRECATED
|
||||||
#endif /* GNUC >= 3.1 */
|
#endif /* GNUC >= 3.1 */
|
||||||
|
|
||||||
|
#if __MINGW_GNUC_PREREQ (3, 3)
|
||||||
|
#define __MINGW_NOTHROW __attribute__ ((__nothrow__))
|
||||||
|
#else
|
||||||
|
#define __MINGW_NOTHROW
|
||||||
|
#endif /* GNUC >= 3.3 */
|
||||||
|
|
||||||
|
|
||||||
|
/* TODO: Mark (almost) all CRT functions as __MINGW_NOTHROW. This will
|
||||||
|
allow GCC to optimize away some EH unwind code, at least in DW2 case. */
|
||||||
|
|
||||||
#ifndef __MSVCRT_VERSION__
|
#ifndef __MSVCRT_VERSION__
|
||||||
/* High byte is the major version, low byte is the minor. */
|
/* High byte is the major version, low byte is the minor. */
|
||||||
# define __MSVCRT_VERSION__ 0x0600
|
# define __MSVCRT_VERSION__ 0x0600
|
||||||
|
|
Loading…
Reference in New Issue