aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-09-14 06:37:18 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-09-14 06:37:18 +0000
commit06e476f547819d9384168d8e768724ad222be54d (patch)
treef18c025594744143e4c02ba4083bc5aac958c695 /gdb/defs.h
parent2cf402d663ace8b31cb956fc4e9cd0bd1e565774 (diff)
downloadgdb-06e476f547819d9384168d8e768724ad222be54d.zip
gdb-06e476f547819d9384168d8e768724ad222be54d.tar.gz
gdb-06e476f547819d9384168d8e768724ad222be54d.tar.bz2
* defs.h (GCC_GENERATED_STDINT_H): Define.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index b0d18d2..23a6599 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -30,6 +30,20 @@
#include <limits.h>
#include <stdint.h>
+/* The libdecnumber library, on which GDB depends, includes a header file
+ called gstdint.h instead of relying directly on stdint.h. GDB, on the
+ other hand, includes stdint.h directly, relying on the fact that gnulib
+ generates a copy if the system doesn't provide one or if it is missing
+ some features. Unfortunately, gstdint.h and stdint.h cannot be included
+ at the same time, which may happen when we include a file from
+ libdecnumber.
+
+ The following macro definition effectively prevents the inclusion of
+ gstdint.h, as all the definitions it provides are guarded against
+ the GCC_GENERATED_STDINT_H macro. We already have gnulib/stdint.h
+ included, so it's ok to blank out gstdint.h. */
+#define GCC_GENERATED_STDINT_H 1
+
#ifdef HAVE_STDDEF_H
#include <stddef.h>
#endif