diff options
-rw-r--r-- | perl.h | 6 | ||||
-rw-r--r-- | perlio.h | 6 |
2 files changed, 10 insertions, 2 deletions
@@ -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: @@ -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); |