summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index f54c559816..a82e0b14c5 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: