system.h (malloc, [...]): #undef token before poisoning it.

* system.h (malloc, realloc, calloc, strdup, bzero, bcmp, rindex):
	#undef token before poisoning it.

From-SVN: r40371
This commit is contained in:
Kaveh R. Ghazi 2001-03-10 22:35:01 +00:00 committed by Kaveh Ghazi
parent 6439a1f204
commit 8a0e5115f4
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h (malloc, realloc, calloc, strdup, bzero, bcmp, rindex):
#undef token before poisoning it.
2001-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alpha.c (check_float_value): Use memcpy, not bcopy.

View File

@ -594,10 +594,17 @@ typedef char _Bool;
#if (GCC_VERSION >= 3000)
#undef malloc
#undef realloc
#undef calloc
#undef strdup
#pragma GCC poison malloc realloc calloc strdup
/* Note: not all uses of `bcopy' and `index' (esp. variable names)
have been eliminated. */
#undef bzero
#undef bcmp
#undef rindex
#pragma GCC poison bzero bcmp rindex
#endif /* GCC >= 3.0 */