Re: best way to work around malloc.h vs stdlib.h ?

2008-08-22 Thread Pedro Giffuni
FWIW; One of the projects in COIN-OR found it unacceptable to ifdef malloc.h with __STDC__. The reason is that other systems, especically AIX, use malloc.h for non standard malloc-related functions, and including malloc.h had no ill effect on other platforms. At the end they ifndef'ed it for

best way to work around malloc.h vs stdlib.h ?

2008-08-19 Thread Luigi Rizzo
A fair amount of third party software in ports still uses malloc.h which in our system is like this: /* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien Exp $ */ #if __STDC__ #error malloc.h has been replaced by stdlib.h #else #include

Re: best way to work around malloc.h vs stdlib.h ?

2008-08-19 Thread Kris Kennaway
Luigi Rizzo wrote: A fair amount of third party software in ports still uses malloc.h which in our system is like this: /* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien Exp $ */ #if __STDC__ #error malloc.h has been replaced by stdlib.h #else

Re: best way to work around malloc.h vs stdlib.h ?

2008-08-19 Thread Jeremy Messenger
On Tue, 19 Aug 2008 12:26:31 -0500, Luigi Rizzo [EMAIL PROTECTED] wrote: A fair amount of third party software in ports still uses malloc.h which in our system is like this: /* $FreeBSD: src/include/malloc.h,v 1.5 2001/11/07 23:14:31 obrien Exp $ */ #if __STDC__ #error

Re: best way to work around malloc.h vs stdlib.h ?

2008-08-19 Thread Luigi Rizzo
On Tue, Aug 19, 2008 at 01:12:37PM -0500, Jeremy Messenger wrote: On Tue, 19 Aug 2008 12:26:31 -0500, Luigi Rizzo [EMAIL PROTECTED] wrote: A fair amount of third party software in ports still uses malloc.h which in our system is like this: /* $FreeBSD: src/include/malloc.h,v 1.5

Re: best way to work around malloc.h vs stdlib.h ?

2008-08-19 Thread Kris Kennaway
Luigi Rizzo wrote: On Tue, Aug 19, 2008 at 01:12:37PM -0500, Jeremy Messenger wrote: On Tue, 19 Aug 2008 12:26:31 -0500, Luigi Rizzo [EMAIL PROTECTED] wrote: A fair amount of third party software in ports still uses malloc.h which in our system is like this: /* $FreeBSD: