Mail Archives: djgpp-workers/2000/03/06/03:08:15
On Sun, 5 Mar 2000, Alain Magloire wrote:
> > > No, wchar.h simply includes stddef.h. So there's no problem in that
> > > case.
> >
> > No. The standard says NULL is defined in wchar.h and in stddef.h.
>
> Yes but it does not say, it should be a specific macro
Right. So our wchar.h includes stddef.h.
> It is up to the implementor of the library, whether you do
> 1)
> #include <stddef.h>
> 2)
> #ifndef NULL
> # define NULL 0
> #endif
Redefining NULL can be tricky, since IIRC C++ has its own ideas about
its definition. So I think in the case of NULL, it is best to avoid
the second alternative.
> Is there a conflict between <wchar.h> and <stddef.h> that will
> prohibit <stddef.h> to be included ?
I don't recall any complaints. OTOH, the wide-character support in
DJGPP is a trivial no-op, so I guess we won't know until it is
improved and somebody actually uses it.
- Raw text -