]> sourceware.org Git - newlib-cygwin.git/commitdiff
2009-10-16 Jeff Johnston <jjohnstn@redhat.com>
authorJeff Johnston <jjohnstn@redhat.com>
Tue, 20 Oct 2009 16:44:11 +0000 (16:44 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Tue, 20 Oct 2009 16:44:11 +0000 (16:44 +0000)
        * 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.

newlib/ChangeLog
newlib/libc/include/stdio.h
newlib/libc/include/sys/config.h

index 539be4563379dfa91fb9a14d95faabd721bfd88d..df9f438607ede59f6113d55046a2fce24d04bd30 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2009-10-15  Corinna Vinschen  <corinna@vinschen.de>
 
        * libc/include/wchar.h (struct tm0: Declare as incomplete type.
index cf0be47b9f922601fcd8211f710adc2f960c0300..b9c8745bc6e97ad9b0b1f7bac4486c674fa11ee5 100644 (file)
@@ -232,7 +232,7 @@ int _EXFUN(sprintf, (char *, const char *, ...)
 int    _EXFUN(remove, (const char *));
 int    _EXFUN(rename, (const char *, const char *));
 #endif
-#ifndef __STRICT_ANSI__
+#if !defined(__STRICT_ANSI__) || defined(__USE_XOPEN2K)
 #ifdef _COMPILING_NEWLIB
 int    _EXFUN(fseeko, (FILE *, _off_t, int));
 _off_t _EXFUN(ftello, ( FILE *));
@@ -240,6 +240,8 @@ _off_t      _EXFUN(ftello, ( FILE *));
 int    _EXFUN(fseeko, (FILE *, off_t, int));
 off_t  _EXFUN(ftello, ( FILE *));
 #endif
+#endif
+#if !defined(__STRICT_ANSI__) || (__STDC_VERSION__ >= 199901L)
 #ifndef _REENT_ONLY
 int    _EXFUN(asiprintf, (char **, const char *, ...)
                _ATTRIBUTE ((__format__ (__printf__, 2, 3))));
index 68d31a1adbe65917667ee369de8a964842855b62..7572d13f28b5a38717881a21054639aa7591d4e6 100644 (file)
 #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__)
This page took 0.050277 seconds and 5 git commands to generate.