Date: Sat, 22 Jul 2000 05:06:22 -0400 (EDT) Message-Id: <200007220906.FAA11985@indy.delorie.com> From: Eli Zaretskii To: Geoff Keating CC: dj AT delorie DOT com, djgpp-workers AT delorie DOT com, gcc AT gcc DOT gnu DOT org In-reply-to: (message from Geoff Keating on 21 Jul 2000 11:33:58 -0700) Subject: Re: GCC headers and DJGPP port References: <200007180918 DOT FAA06988 AT indy DOT delorie DOT com> <200007181913 DOT VAA01170 AT loewis DOT home DOT cs DOT tu-berlin DOT de> <200007191826 DOT OAA08693 AT indy DOT delorie DOT com> <200007200729 DOT JAA01060 AT loewis DOT home DOT cs DOT tu-berlin DOT de> <200007201024 DOT GAA09536 AT indy DOT delorie DOT com> <200007201205 DOT OAA15361 AT loewis DOT home DOT cs DOT tu-berlin DOT de> <200007201437 DOT KAA29757 AT envy DOT delorie DOT com> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: Geoff Keating > Date: 21 Jul 2000 11:33:58 -0700 > > Note that: > - size_t is defined by stdio.h and stddef.h and string.h and wchar.h; > - NULL is defined by stdio.h and stddef.h and string.h and time.h and wchar.h; > - wchar_t is defined by stdlib.h and stddef.h and wchar.h; > > so you already have to test if NULL is defined before defining it. Not if every definition of NULL says the same. This is allowed by ANSI/ISO C (AFAIK), and GCC quite rightfully doesn't print any warnings. As for size_t and wchar_t, we have a private header that defines them, which is included by all the headers that need those types. There are safeguards to prevent multiple typedefs.