diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-13 19:55:18 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-13 19:55:18 +0000 |
commit | 110d6889930082e6396ee357fa246759429a35ea (patch) | |
tree | cec15c76763f1279c5f32a18f037a9d7b885b0f9 /gcc/system.h | |
parent | 2dda89f55be2266686d16b8a780dbcdbbcb46f88 (diff) | |
download | gcc-110d6889930082e6396ee357fa246759429a35ea.tar.gz |
* system.h (malloc, realloc, calloc, strdup): Only poison these
tokens when IN_GCC is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40443 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index a18e34c9d53..24abf91d75f 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -584,11 +584,17 @@ typedef char _Bool; #if (GCC_VERSION >= 3000) +/* Note autoconf checks for prototype declarations and includes + system.h while doing so. Only poison these tokens if actually + compiling gcc, so that the autoconf declaration tests for malloc + etc don't spuriously fail. */ +#ifdef IN_GCC #undef malloc #undef realloc #undef calloc #undef strdup #pragma GCC poison malloc realloc calloc strdup +#endif /* IN_GCC */ /* Note: not all uses of `bcopy' and `index' (esp. variable names) have been eliminated. */ |