]> Savannah Git Hosting - gnulib.git/commitdiff
time: port __need_time_t to MinGW
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Jul 2015 14:53:36 +0000 (07:53 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Jul 2015 14:55:27 +0000 (07:55 -0700)
* lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36

ChangeLog
lib/time.in.h

index 9787fdaaf0295747c4ca0af142baf91b562d71e7..59a23d7a0b86f680d88b2f1321670cf1967e2399 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       time: port __need_time_t to MinGW
+       * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
+       Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
+
 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
 
        strftime: fix newly-introduced bug on Solaris
index a5cb55d6b003086fdda4b7f8a047c95e0d031bdc..0d375724710785c614d5c7c13e3c21d194306128 100644 (file)
 
 /* Don't get in the way of glibc when it includes time.h merely to
    declare a few standard symbols, rather than to declare all the
-   symbols.  Also, Solaris 8 <time.h> eventually includes itself
+   symbols.  (However, skip this for MinGW as it treats __need_time_t
+   incompatibly.)  Also, Solaris 8 <time.h> eventually includes itself
    recursively; if that is happening, just include the system <time.h>
    without adding our own declarations.  */
-#if (defined __need_time_t || defined __need_clock_t \
-     || defined __need_timespec \
+#if (((defined __need_time_t || defined __need_clock_t \
+       || defined __need_timespec)                     \
+      && !defined __MINGW32__)                         \
      || defined _@GUARD_PREFIX@_TIME_H)
 
 # @INCLUDE_NEXT@ @NEXT_TIME_H@