aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-11-06 07:36:46 -0700
committerTom Tromey <tromey@redhat.com>2013-11-18 13:29:01 -0700
commit161d1bec16764585e987c8d804df0fb560a0d491 (patch)
tree57fe668db971f2368399a241b9e4effec80b7167 /gdb/defs.h
parent2978b11100a6318e05b8bc2d7923d9f735ef5c6e (diff)
downloadgdb-161d1bec16764585e987c8d804df0fb560a0d491.zip
gdb-161d1bec16764585e987c8d804df0fb560a0d491.tar.gz
gdb-161d1bec16764585e987c8d804df0fb560a0d491.tar.bz2
don't check for stddef.h
gdb already unconditionally includes stddef.h in many places. I think there is no reason to check for its existence. Also, Zack Weinberg's header file survey agrees: http://hacks.owlfolio.org/header-survey/ This patch removes the configure check and the inclusion guards. It also removes a redundant inclusion that I noticed in defs.h. 2013-11-18 Tom Tromey <tromey@redhat.com> * config.in: Rebuild. * configure: Rebuild. * configure.ac: Don't check for stddef.h. * defs.h: Unconditionally include stddef.h. Remove duplicate inclusion.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index b1caaad..bb93742 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -48,9 +48,7 @@
included, so it's ok to blank out gstdint.h. */
#define GCC_GENERATED_STDINT_H 1
-#ifdef HAVE_STDDEF_H
#include <stddef.h>
-#endif
#include <unistd.h>
@@ -606,10 +604,6 @@ enum gdb_osabi
/* From other system libraries */
-#ifdef HAVE_STDDEF_H
-#include <stddef.h>
-#endif
-
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif