summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-10-20 16:44:11 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-10-20 16:44:11 +0000
commit1e1b6f8003e392a63a01f81fa99ad86ecc28ad66 (patch)
tree909411a4c16aad99d434a06a2ab040a13cb6f1c2 /newlib/libc/include/sys
parentaa0937c30834bf3f9e15e26eebe38a451bf68ac0 (diff)
downloadcygnal-1e1b6f8003e392a63a01f81fa99ad86ecc28ad66.tar.gz
cygnal-1e1b6f8003e392a63a01f81fa99ad86ecc28ad66.tar.bz2
cygnal-1e1b6f8003e392a63a01f81fa99ad86ecc28ad66.zip
2009-10-16 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/config.h[__CYGWIN__]: Set __USE_XOPEN2K flag if not __STRICT_ANSI__ or stdc version C99 or greater. * libc/include/stdio.h[__STRICT_ANSI__]: Add __USE_XOPEN2K check for fseeko and ftello prototypes.
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 68d31a1ad..7572d13f2 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -186,6 +186,9 @@
#include <cygwin/config.h>
#define __LINUX_ERRNO_EXTENSIONS__ 1
#define _MB_EXTENDED_CHARSETS_ALL 1
+#if !defined (__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L)
+#define __USE_XOPEN2K 1
+#endif
#endif
#if defined(__rtems__)