From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kaveh R. Ghazi" To: phdm@macqel.be Cc: bothner@cygnus.com, egcs@cygnus.com, law@cygnus.com Subject: Re: egcs, does gcc fixincludes etc guarantee a stdlib.h exists? Date: Tue, 14 Apr 1998 09:37:00 -0000 Message-id: <199804141433.KAA28154@caip.rutgers.edu> X-SW-Source: 1998-04/msg00533.html > From: "Philippe De Muyter" > > > Mon Apr 13 12:18:31 1998 Kaveh R. Ghazi > > > > * frame.c: Include stdlib.h and unistd.h to possibly get various > > function prototypes. The fixproto script guarantees these header > > files exist on the target system. > > As I wrote before, stdlib.h and unistd.h are guaranteed to exist, but > there is no guarantee that you get a prototype for malloc from stdlib.h, > except if you define __USE_FIXED_PROTOTYPES__ before including stdlib.h. > > Philippe De Muyter I considered doing that, but I wasn't completely sure defining that macro unconditionally in libgcc2.c or frame.c was a good idea. Are we guaranteed that defining __USE_FIXED_PROTOTYPES__ is safe for all platforms? (I don't know, I'm asking.) If it is safe, then why does the wrapper exist at all? ... I don't have strong feelings either way. Whatever Jeff decides is fine with me. --Kaveh -- Kaveh R. Ghazi Project Manager / Custom Development ghazi@caip.rutgers.edu Icon CMT Corp.