summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-11-13 22:26:15 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-11-13 22:26:15 +0000
commitbb98fe7a5f9e0b90b1aaff59fd62cd2dec5eed1b (patch)
treece960f0a9f81ad69ade86cf37b1e22f509410938
parent08aa4efd40eb14274574e129b0ce8d1756fb741d (diff)
downloadgdb-bb98fe7a5f9e0b90b1aaff59fd62cd2dec5eed1b.tar.gz
* printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/printcmd.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4042830eeda..5b35e051181 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-13 Joel Brobecker <brobecker@adacore.com>
+
+ * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
+
2008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
* auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 355552db5e0..fe206265772 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -48,7 +48,7 @@
#include "tui/tui.h" /* For tui_active et.al. */
#endif
-#if defined(__MINGW32__)
+#if defined(__MINGW32__) && !defined(PRINTF_HAS_LONG_LONG)
# define USE_PRINTF_I64 1
# define PRINTF_HAS_LONG_LONG
#else