[ mingw-Bugs-1590623 ]

* include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
	in C99 mode.
This commit is contained in:
Danny Smith 2006-11-08 21:58:18 +00:00
parent 2d46f1ddfb
commit cb505ee695
2 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2006-11-09 Danny Smith <dannysmith@users.sourceforge.net>
[ mingw-Bugs-1590623 ]
* include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute
in C99 mode.
2006-10-04 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in: Semi-revert semi-reversion of 2006-08-30 change, now

View File

@ -23,6 +23,7 @@
#ifndef __MINGW_H
#define __MINGW_H
/* These are defined by the user (or the compiler)
to specify how identifiers are imported from a DLL.
@ -104,12 +105,6 @@
# endif
#endif /* __GNUC__ */
#ifdef __cplusplus
#define __CRT_INLINE inline
#else
#define __CRT_INLINE extern __inline__
#endif
#if defined (__GNUC__) && defined (__GNUC_MINOR__)
#define __MINGW_GNUC_PREREQ(major, minor) \
(__GNUC__ > (major) \
@ -118,6 +113,16 @@
#define __MINGW_GNUC_PREREQ(major, minor) 0
#endif
#ifdef __cplusplus
# define __CRT_INLINE inline
#else
# if ( __MINGW_GNUC_PREREQ(4, 3) && __STDC_VERSION__ >= 199901L)
# define __CRT_INLINE extern __attribute__((__gnu__inline__)) inline
# else
# define __CRT_INLINE extern __inline__
# endif
#endif
#ifdef __cplusplus
# define __UNUSED_PARAM(x)
#else