From df2831126049a902620b50ebb989e05e7ffed4b4 Mon Sep 17 00:00:00 2001 From: gerald Date: Tue, 15 Feb 2000 21:04:53 +0000 Subject: * ginclude/stddef.h: Correct usage of _BSD_RUNE_T_ for FreeBSD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31988 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ginclude/stddef.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/ginclude/stddef.h') diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h index ae1037fd09d..41f8f033a0d 100644 --- a/gcc/ginclude/stddef.h +++ b/gcc/ginclude/stddef.h @@ -269,6 +269,13 @@ typedef long ssize_t; #ifdef _BSD_RUNE_T_ #if !defined (_ANSI_SOURCE) && !defined (_POSIX_SOURCE) typedef _BSD_RUNE_T_ rune_t; +#if defined (__FreeBSD__) +/* Why is this file so hard to maintain properly? In constrast to + the comment above regarding BSD/386 1.1, on FreeBSD for as long + as the symbol has existed, _BSD_RUNE_T_ must not stay defined or + redundant typedefs will occur when stdlib.h is included after this file. */ +#undef _BSD_RUNE_T_ +#endif #endif #endif #endif -- cgit v1.2.1