X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perlio.h;h=8ff2bff2f4b4327f057ffb625c74b2e7d19e08e7;hb=06705523e0517b0027174c49916c620f6946316f;hp=f0e735e16b51a33f3ff7f4b4b95a297c4a83f1b4;hpb=de009b76d60bdeb88f1d812ac755ae225805a071;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perlio.h b/perlio.h index f0e735e..8ff2bff 100644 --- a/perlio.h +++ b/perlio.h @@ -210,19 +210,11 @@ PERL_EXPORT_C void PerlIO_clone(pTHX_ PerlInterpreter *proto, START_EXTERN_C #ifndef __attribute__format__ -#ifdef CHECK_FORMAT -#define __attribute__format__(x,y,z) __attribute__((__format__(x,y,z))) -#else -#define __attribute__format__(x,y,z) -#endif -#endif -#ifndef NEXT30_NO_ATTRIBUTE -#ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */ -#ifdef __attribute__ /* Avoid possible redefinition errors */ -#undef __attribute__ -#endif -#define __attribute__(attr) -#endif +# ifdef HASATTRIBUTE_FORMAT +# define __attribute__format__(x,y,z) __attribute__((format(x,y,z))) +# else +# define __attribute__format__(x,y,z) +# endif #endif #ifndef PerlIO_init PERL_EXPORT_C void PerlIO_init(pTHX);