Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2006-11-09 00:58:18 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2006-11-09 00:58:18 +0300
commitcb505ee6950098ed7fb328b97a009a641fb8da06 (patch)
treee2cbba92800c6684b0461b138008f5072be77627
parent2d46f1ddfbdb2778c88b937fb3f7bebffc499a59 (diff)
[ mingw-Bugs-1590623 ]
* include/_mingw.h (__CRT_INLINE): Use __gnu_inline__ attribute in C99 mode.
-rw-r--r--winsup/mingw/ChangeLog6
-rw-r--r--winsup/mingw/include/_mingw.h17
2 files changed, 17 insertions, 6 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index 45d706561..e600b361b 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -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
diff --git a/winsup/mingw/include/_mingw.h b/winsup/mingw/include/_mingw.h
index c0b1ac9fa..a8200d684 100644
--- a/winsup/mingw/include/_mingw.h
+++ b/winsup/mingw/include/_mingw.h
@@ -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) \
@@ -119,6 +114,16 @@
#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
# ifdef __GNUC__