William A. Rowe, Jr. wrote:
At 06:55 PM 3/5/2003, Stas Bekman wrote:
From browsing perl sources, it seems that this is the proper way to do that:

#ifdef  __attribute__           /* Avoid possible redefinition errors */
#undef  __attribute__
#endif
#define __attribute__(__x)
#endif


--1 - you would eliminate the ability for us to pick up thinks like 
apr_xprintf()
invalid formatting strings and the like where they are supported.

I don't know what's the proper way to do that. I was just looking at how other projects have done this.


So your suggested:

#ifndef __attribute__
#define __attribute__(__x)
#endif

is fine by me.

Your snippet isn't balanced above, was their something more?

oops, kill the last #endif

it was a part of the wrapper
#ifndef HASATTRIBUTE
...
#endif

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to