This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libio/dbz won't compile (patch)


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> ...
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]