aboutsummaryrefslogtreecommitdiff
path: root/gdb/acconfig.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-21 01:02:53 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-21 01:02:53 +0000
commitfef1696ffcfaeb438ebd8c519edd3baf212b76e7 (patch)
treee16e4e7a49cef8a194aea6c7828b359beeed04c4 /gdb/acconfig.h
parentdbc4eefc3dcccd9f8759540505e3fb9c466c7d62 (diff)
downloadgdb-fef1696ffcfaeb438ebd8c519edd3baf212b76e7.zip
gdb-fef1696ffcfaeb438ebd8c519edd3baf212b76e7.tar.gz
gdb-fef1696ffcfaeb438ebd8c519edd3baf212b76e7.tar.bz2
* aclocal.m4: Include ../bfd/aclocal.m4.
* configure.in: Add stdlib.h to AC_CHECK_HEADERS. Call BFD_NEED_DECLARATION on malloc, realloc, and free. * acconfig.h: Add NEED_DECLARATION_MALLOC, NEED_DECLARATION_REALLOC, and NEED_DECLARATION_FREE. * configure, config.in: Rebuild. * defs.h: Include <stddef.h> and <stdlib.h> based on HAVE_*_H rather than __STDC__. Only declare malloc, realloc, and free if NEED_DECLARATION_* is defined.
Diffstat (limited to 'gdb/acconfig.h')
-rw-r--r--gdb/acconfig.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/acconfig.h b/gdb/acconfig.h
index 34fa8c8..fc7ce7c 100644
--- a/gdb/acconfig.h
+++ b/gdb/acconfig.h
@@ -1,4 +1,14 @@
+/* Whether malloc must be declared even if <stdlib.h> is included. */
+#undef NEED_DECLARATION_MALLOC
+
+/* Whether realloc must be declared even if <stdlib.h> is included. */
+#undef NEED_DECLARATION_REALLOC
+
+/* Whether free must be declared even if <stdlib.h> is included. */
+#undef NEED_DECLARATION_FREE
+@TOP@
+
/* Define if fpregset_t type is available. */
#undef HAVE_FPREGSET_T