summaryrefslogtreecommitdiff
path: root/lib/mktime.c
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2016-01-12 23:09:35 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-01-12 23:10:28 -0800
commit0433724bb2a1eb7db42181746b79e15ad7a79930 (patch)
treee95649cddb806e57e1e9cbb33bb4df0e10b8c560 /lib/mktime.c
parent8c4223e2f1a3180d0836e29e136b41ce0e7afe72 (diff)
downloadgnulib-0433724bb2a1eb7db42181746b79e15ad7a79930.tar.gz
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
Diffstat (limited to 'lib/mktime.c')
-rw-r--r--lib/mktime.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mktime.c b/lib/mktime.c
index 7d06314d87..bc7ed5674b 100644
--- a/lib/mktime.c
+++ b/lib/mktime.c
@@ -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>
@@ -38,13 +38,13 @@
#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
-#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 */
/*
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:
*/