Boehne, Robert wrote:
I'm not sure this is a good idea because other functions might be
pulled from malloc.h, or malloc() might be find in yet another header.
It's nearly impossible to know, you would need to be familiar
with every system function used by libltdl and where it resides
on every syste
to:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 5:19 AM
To: Bob Friesenhahn
Cc: Boehne, Robert; [EMAIL PROTECTED]
Subject: Re: Fixing malloc.h related warning
Bob Friesenhahn wrote:
> On Mon, 15 Sep 2003, Boehne, Robert wrote:
>
>
>>Dalibor,
>>
>>This would
Bob Friesenhahn wrote:
On Mon, 15 Sep 2003, Boehne, Robert wrote:
Dalibor,
This would require a patch that looks for whatever malloc.h is #included for
in stdlib.h and prefers it in stdlib.h. So it isn't as simple as s/malloc/stdlib/.
The question is how necessary is it to support non-ANSI C.
Bob,
I agree, and would approve such a patch if one were posted.
Robert
-Original Message-
From: Bob Friesenhahn [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 1:38 PM
To: Boehne, Robert
Cc: Dalibor Topic; [EMAIL PROTECTED]
Subject: RE: Fixing malloc.h related warning
On
ECTED]
> Sent: Monday, September 15, 2003 1:10 PM
> To: Boehne, Robert
> Cc: [EMAIL PROTECTED]
> Subject: Re: Fixing malloc.h related warning
>
>
> Hi Robert,
>
> what about
>
> /*
> * Include the header defining malloc.
> *
> * On K&
On Mon, 15 Sep 2003, Boehne, Robert wrote:
> Dalibor,
>
> This would require a patch that looks for whatever malloc.h is #included for
> in stdlib.h and prefers it in stdlib.h. So it isn't as simple as s/malloc/stdlib/.
The question is how necessary is it to support non-ANSI C. Stdlib.h
is ANSI
, September 15, 2003 1:10 PM
To: Boehne, Robert
Cc: [EMAIL PROTECTED]
Subject: Re: Fixing malloc.h related warning
Hi Robert,
what about
/*
* Include the header defining malloc.
*
* On K&R C compilers, that's ,
* on ANSI C and ISO C compilers, that's
* .
*
*/
#if
Hi Robert,
what about
/*
* Include the header defining malloc.
*
* On K&R C compilers, that's ,
* on ANSI C and ISO C compilers, that's
* .
*
*/
#if HAVE_STDLIB_H
# include
#else
# if HAVE_MALLOC_H
#include
# endif
#endif
cheers,
dalibor topic
Boehne, Robert wrote:
Dalibor,
This
Dalibor,
This would require a patch that looks for whatever malloc.h is #included for
in stdlib.h and prefers it in stdlib.h. So it isn't as simple as s/malloc/stdlib/.
Robert
-Original Message-
From: Dalibor Topic [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:36 AM
To: