This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Attribute compilation fix for Windows by Andy Lester
[perl5.git] / perl.h
diff --git a/perl.h b/perl.h
index f54c559..a82e0b1 100644 (file)
--- a/perl.h
+++ b/perl.h
 #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: