summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-23 14:31:33 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-23 14:31:33 +0000
commitb79c357a0c9c7ce8cc63f8054dca48fefcb408f8 (patch)
tree96114912a1bacdf778484dc532ee204a1e86afc1 /perl.h
parentc658fda90cbfa7f500b7be4479ba1ccd8781566d (diff)
downloadperl-b79c357a0c9c7ce8cc63f8054dca48fefcb408f8.tar.gz
Attribute compilation fix for Windows by Andy Lester
p4raw-id: //depot/perl@24552
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: