This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libio/dbz won't compile (patch)
- To: Per Bothner <per at bothner dot com>
- Subject: Re: libio/dbz won't compile (patch)
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 24 Jan 2000 09:16:19 -0700
- cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <m2hfg3sqm4.fsf@magnus.bothner.com>you write:
> Ulrich Drepper <drepper@cygnus.com> writes:
>
> > Whether there are still platforms which don't have stdlib.h I don't
> > know. You'll find out and then have to use something different than
> > __STDC__.
>
> The real question is: Are there any platforms that don't have stdlib.h
> *and* define __STDC__? Gcc's fix-protos installs a usable stdlib.h,
> or at least it used to, so I've always considered it safe and reasonable
> to do #ifdef __STDC ... #include <stdlib.h> ...
To the best of my knowledge, this behavior hasn't changed, so it's
probably safe for target library code to include stdlib.h when
__STDC__ is defined.
jeff