]> Savannah Git Hosting - gnulib.git/commitdiff
mktime: merge #if/#ifdef usage from glibc
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Jun 2014 18:35:44 +0000 (11:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 27 Jun 2014 18:36:15 +0000 (11:36 -0700)
* lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
as that works with both Glibc's and Gnulib's style.
See thread starting at Siddhesh Poyarekar's bug report at:
http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html

ChangeLog
lib/mktime.c

index c950bdf1521fcd8aec51b220f9c08ec76b6d9875..e7938665df3db7f31348b471b6febf67fe2472fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
+
+       mktime: merge #if/#ifdef usage from glibc
+       * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
+       as that works with both Glibc's and Gnulib's style.
+       See thread starting at Siddhesh Poyarekar's bug report at:
+       http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
+
 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
 
        git-version-gen: improve option descriptions
index f10e5301de184e2f1b69c836c952f4b326d59d92..a52933e0e9379dc200fbbb735c775615a9d9df72 100644 (file)
@@ -38,7 +38,7 @@
 
 #include <string.h>            /* For the real memcpy prototype.  */
 
-#if DEBUG
+#if defined DEBUG && DEBUG
 # include <stdio.h>
 # include <stdlib.h>
 /* Make it work even if the system's libc has its own mktime routine.  */
@@ -600,7 +600,7 @@ libc_hidden_def (mktime)
 libc_hidden_weak (timelocal)
 #endif
 \f
-#if DEBUG
+#if defined DEBUG && DEBUG
 
 static int
 not_equal_tm (const struct tm *a, const struct tm *b)