summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2007-12-19 18:51:19 +0000
committerJeff Johnston <jjohnstn@redhat.com>2007-12-19 18:51:19 +0000
commit41e94f24883de8de8253725f813c1dc14de12019 (patch)
tree24472e5ccc64c2992e720e45b950edfb0d795f21
parent7f9b49e42758147189448939f277547428deeeb6 (diff)
downloadcygnal-41e94f24883de8de8253725f813c1dc14de12019.tar.gz
cygnal-41e94f24883de8de8253725f813c1dc14de12019.tar.bz2
cygnal-41e94f24883de8de8253725f813c1dc14de12019.zip
2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/features.h: Add checks for C90 compilers using -ansi.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/features.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 92ba80b0f..471d0bcb3 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-19 Jeff Johnston <jjohnstn@redhat.com>
+
+ * libc/include/sys/features.h: Add checks for C90 compilers using
+ -ansi.
+
2007-12-19 Corinna Vinschen <corinna@vinschen.de>
* libc/include/wchar.h: Add prototypes for wcpcpy and wcpncpy.
diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
index 196aaae64..f16263f8d 100644
--- a/newlib/libc/include/sys/features.h
+++ b/newlib/libc/include/sys/features.h
@@ -81,6 +81,8 @@ extern "C" {
#endif
#ifdef __CYGWIN__
+
+#if !defined(__STRICT_ANSI__) || defined(__cplusplus) || __STDC_VERSION__ >= 199901L
#define _POSIX_VERSION 200112L
#define _POSIX2_VERSION 200112L
#define _XOPEN_VERSION 600
@@ -164,7 +166,8 @@ extern "C" {
/* #define _XOPEN_STREAMS -1 */
/* #define _XOPEN_UNIX -1 */
-#endif
+#endif /* !__STRICT_ANSI__ || __cplusplus || __STDC_VERSION__ >= 199901L */
+#endif /* __CYGWIN__ */
#ifdef __SPU__
/* Not much for now! */