From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Philippe De Muyter" To: ghazi@caip.rutgers.edu (Kaveh R. Ghazi) Cc: egcs@cygnus.com, ghazi@caip.rutgers.edu Subject: Re: egcs, does gcc fixincludes etc guarantee a stdlib.h exists? Date: Sat, 28 Mar 1998 19:24:00 -0000 Message-id: <199803282139.WAA02957@mail.macqel.be> References: <199803272118.QAA25896@caip.rutgers.edu> X-SW-Source: 1998-03/msg00977.html > Simple question. Does gcc guarantee that after it diddles with > the system headers that a stdlib.h exists in some form? I think the answer is `yes'... > For target files which include tconfig.h, since we can't check > autoconf macros, I'd like to hardwire including stdlib.h to possibly get > prototypes for malloc, et al. ... but the prototypes that did not exist before fixincludes etc are only defined if either __USE_FIXED_PROTOTYPES__, __cplusplus or __STRICT_ANSI__ are defined. In some objc file, I defined __USE_FIXED_PROTOTYPES__ before including stdlib.h to get the prototypes for malloc and friends. Philippe