OSDN Git Service

Reinstate typedef for non-standard off64_t.
authorKeith Marshall <keithmarshall@users.sourceforge.net>
Sun, 13 Mar 2016 19:43:09 +0000 (19:43 +0000)
committerKeith Marshall <keithmarshall@users.sourceforge.net>
Sun, 13 Mar 2016 19:43:09 +0000 (19:43 +0000)
mingwrt/ChangeLog
mingwrt/include/sys/types.h

index c6b1dfc..efb63a7 100644 (file)
@@ -1,5 +1,13 @@
 2016-03-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
 
+       Reinstate typedef for non-standard off64_t.
+
+       * include/sys/types.h [!__STRICT_ANSI__] (off64_t): Define it as...
+       (__off64_t): ...typedef derived from this; although non-standard, it
+       is gratuitously required when building GCC's libgfortran.a
+
+2016-03-13  Keith Marshall  <keithmarshall@users.sourceforge.net>
+
        Correct conditional compilation block nesting errors.
 
        * include/stdio.h include/time.h (_BEGIN_C_DECLS, _END_C_DECLS): Keep
index 5ad62cf..82cb4f3 100644 (file)
   */
   typedef __int64  __off64_t;
 
+# ifndef __STRICT_ANSI__
+  /* GCC itself, (specifically libgfortran.a), gratuitously
+   * assumes that non-standard type off64_t is defined; make
+   * it so, pending upstream correction.
+   */
+  typedef __off64_t  off64_t;
+# endif
+
 # if __GNUC__ < 4
   /* Some compilers, including GCC prior to v4, may get upset
    * if we try to specifiy these typedefs more than once.