]> Savannah Git Hosting - gnulib.git/commitdiff
mktime: rename macro to avoid glibc clash
authorMartin Sebor <msebor@redhat.com>
Wed, 13 Jan 2016 07:09:35 +0000 (23:09 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 13 Jan 2016 07:10:28 +0000 (23:10 -0800)
* lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html

ChangeLog
lib/mktime.c

index c93e8a9b0db13c8a6530c8acf02bac9cdc60c670..1434b3d1502e9d72381a620d0346fc040d630504 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-01-12  Martin Sebor  <msebor@redhat.com>
+
+       mktime: rename macro to avoid glibc clash
+       * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
+       https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
+
 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        Port "$@" to OpenIndiana ksh93
index 7d06314d877208eea83a041f4dae1bdf48bc7ad8..bc7ed5674ba81d47b07abfcc5c2dd3cbbe63a8aa 100644 (file)
@@ -19,7 +19,7 @@
 
 /* Define this to have a standalone program to test this implementation of
    mktime.  */
-/* #define DEBUG 1 */
+/* #define DEBUG_MKTIME 1 */
 
 #ifndef _LIBC
 # include <config.h>
 
 #include <string.h>            /* For the real memcpy prototype.  */
 
-#if defined DEBUG && DEBUG
+#if defined DEBUG_MKTIME && DEBUG_MKTIME
 # include <stdio.h>
 # include <stdlib.h>
 /* Make it work even if the system's libc has its own mktime routine.  */
 # undef mktime
 # define mktime my_mktime
-#endif /* DEBUG */
+#endif /* DEBUG_MKTIME */
 
 /* Some of the code in this file assumes that signed integer overflow
    silently wraps around.  This assumption can't easily be programmed
@@ -600,7 +600,7 @@ libc_hidden_def (mktime)
 libc_hidden_weak (timelocal)
 #endif
 \f
-#if defined DEBUG && DEBUG
+#if defined DEBUG_MKTIME && DEBUG_MKTIME
 
 static int
 not_equal_tm (const struct tm *a, const struct tm *b)
@@ -732,10 +732,10 @@ main (int argc, char **argv)
   return status;
 }
 
-#endif /* DEBUG */
+#endif /* DEBUG_MKTIME */
 \f
 /*
 Local Variables:
-compile-command: "gcc -DDEBUG -I. -Wall -W -O2 -g mktime.c -o mktime"
+compile-command: "gcc -DDEBUG_MKTIME -I. -Wall -W -O2 -g mktime.c -o mktime"
 End:
 */