Re: probing for compiler attributes?

2007-08-08 Thread Luca Dionisi
On 8/8/07, John W. Eaton <[EMAIL PROTECTED]> wrote: > On 7-Aug-2007, Joshua Hoblitt wrote: > > | Is there a pre-canned AC macro or other reliable means of testing for > | compiler attributes? > | > | I have an awful lot of code that looks something like this: > | > | void *myfunc(char *myvar

Re: probing for compiler attributes?

2007-08-09 Thread Luca Dionisi
On 8/9/07, Joshua Hoblitt <[EMAIL PROTECTED]> wrote: > On Tue, Aug 07, 2007 at 08:43:54PM -0400, John W. Eaton wrote: > > Ugh. Don't do it like that. Instead, write something like > > > > your-config-header.h: > > > > #ifdef __GNUC__ > > #define ATTR_MALLOC __attribut