From: Rafael Garcia-Suarez Date: Mon, 23 May 2005 14:31:33 +0000 (+0000) Subject: Attribute compilation fix for Windows by Andy Lester X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b79c357a0c9c7ce8cc63f8054dca48fefcb408f8;p=p5sagit%2Fp5-mst-13.2.git Attribute compilation fix for Windows by Andy Lester p4raw-id: //depot/perl@24552 --- diff --git a/perl.h b/perl.h index f54c559..a82e0b1 100644 --- a/perl.h +++ b/perl.h @@ -199,7 +199,11 @@ #endif #ifndef PERL_UNUSED_DECL -# define PERL_UNUSED_DECL __attribute__unused__ +# ifdef HASATTRIBUTE_UNUSED +# define PERL_UNUSED_DECL __attribute__unused__ +# else +# define PERL_UNUSED_DECL +# endif #endif /* gcc -Wall: diff --git a/perlio.h b/perlio.h index 3022282..8ff2bff 100644 --- a/perlio.h +++ b/perlio.h @@ -210,7 +210,11 @@ PERL_EXPORT_C void PerlIO_clone(pTHX_ PerlInterpreter *proto, START_EXTERN_C #ifndef __attribute__format__ -# define __attribute__format__(x,y,z) __attribute__((format(x,y,z))) +# 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);