summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorAbhijit Menon-Sen <ams@wiw.org>2005-05-21 22:17:20 +0000
committerAbhijit Menon-Sen <ams@wiw.org>2005-05-21 22:17:20 +0000
commit5b2bd0a5b0f42f1ec1874721dd99072f7f7d3340 (patch)
tree088fdc0e6056a068514ecd395efed119b7642f20 /perl.h
parent5eff7df71d0d0bb7c87e225c00e2091ae2433cb9 (diff)
downloadperl-5b2bd0a5b0f42f1ec1874721dd99072f7f7d3340.tar.gz
Make the __attribute__ stuff work with Symbian (Jarkko).
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2005-05/msg00530.html p4raw-id: //depot/perl@24536
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/perl.h b/perl.h
index 22b6af598b..f54c559816 100644
--- a/perl.h
+++ b/perl.h
@@ -190,8 +190,18 @@
#define CALLREG_INTUIT_STRING CALL_FPTR(PL_regint_string)
#define CALLREGFREE CALL_FPTR(PL_regfree)
-#define PERL_UNUSED_DECL __attribute__unused__
+#if defined(SYMBIAN) && defined(__GNUC__)
+# ifdef __cplusplus
+# define PERL_UNUSED_DECL
+# else
+# define PERL_UNUSED_DECL __attribute__((unused))
+# endif
+#endif
+#ifndef PERL_UNUSED_DECL
+# define PERL_UNUSED_DECL __attribute__unused__
+#endif
+
/* gcc -Wall:
* for silencing unused variables that are actually used most of the time,
* but we cannot quite get rid of, such `ax' in PPCODE+noargs xsubs