This is the mail archive of the gcc-bugs@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)



  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

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