On st 18. Ășnora 2009, Vladimir Nadvornik wrote: > On st 18. Ășnora 2009, Dan Pascu wrote: > > On Tuesday 17 February 2009, Vladimir Nadvornik wrote: > > > -void wmessage(const char *msg, ...); > > > +void wmessage(const char *msg, ...) > > > __attribute__((__format__(printf,1,2))); > > > > Is this stuff portable to non-linuxes? What does it even mean? I read it > > an have no clue what is supposed to do. And what is wrong with the > > original form? > > It prints a warning in cases like bellow. I didn't write the patch and > have no clue if it is portable. >
I have just found that portable code needs this: #ifndef __GNUC__ # define __attribute__(x) /*NOTHING*/ #endif Vladimir -- To unsubscribe, send mail to [email protected].
