summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-13 01:49:16 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-13 01:49:16 +0000
commita2ebbb48809073ff0ad025e7ab625bf9c3ec5b0a (patch)
tree222fb0b8d1960e661afbb8ebdf9630718508a709 /include
parentf446ac8cc3c2b548bc714a4a358301c5effee212 (diff)
downloadgcc-a2ebbb48809073ff0ad025e7ab625bf9c3ec5b0a.tar.gz
* demangle.h: If ANSI_PROTOTYPES is defined, include <stddef.h>.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75783 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog2
-rw-r--r--include/demangle.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 2e291cc6216..07e0129c836 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,5 +1,7 @@
2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
+ * demangle.h: If ANSI_PROTOTYPES is defined, include <stddef.h>.
+
* demangle.h (enum demangle_component_type): Define.
(struct demangle_operator_info): Declare.
(struct demangle_builtin_type_info): Declare.
diff --git a/include/demangle.h b/include/demangle.h
index c3fdb036d53..dfe42069294 100644
--- a/include/demangle.h
+++ b/include/demangle.h
@@ -23,6 +23,11 @@
#include "ansidecl.h"
+#ifdef ANSI_PROTOTYPES
+/* Get a definition for size_t. */
+#include <stddef.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */