summaryrefslogtreecommitdiff
path: root/ext/Devel
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-05-20 21:46:26 +0000
committerNicholas Clark <nick@ccl4.org>2005-05-20 21:46:26 +0000
commit62093c1c517a0f69ccb4c04109c4e03e3036523d (patch)
tree1e656844c074429658dd672a35d1a64026b5cf82 /ext/Devel
parent11ca45c0440b891278a1e7129025dd5644026556 (diff)
downloadperl-62093c1c517a0f69ccb4c04109c4e03e3036523d.tar.gz
Need to make PERL_UNUSED_DECL conditional as xlc on AIX doesn't like
it being redefined. p4raw-id: //depot/perl@24519
Diffstat (limited to 'ext/Devel')
-rw-r--r--ext/Devel/PPPort/PPPort.pm14
-rw-r--r--ext/Devel/PPPort/parts/inc/misc14
2 files changed, 16 insertions, 12 deletions
diff --git a/ext/Devel/PPPort/PPPort.pm b/ext/Devel/PPPort/PPPort.pm
index da91556bd2..8aebac51a9 100644
--- a/ext/Devel/PPPort/PPPort.pm
+++ b/ext/Devel/PPPort/PPPort.pm
@@ -3951,14 +3951,16 @@ __DATA__
/* Replace: 0 */
#endif
-#ifdef HASATTRIBUTE
-# if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
-# define PERL_UNUSED_DECL
+#ifndef PERL_UNUSED_DECL
+# ifdef HASATTRIBUTE
+# if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
+# define PERL_UNUSED_DECL
+# else
+# define PERL_UNUSED_DECL __attribute__((unused))
+# endif
# else
-# define PERL_UNUSED_DECL __attribute__((unused))
+# define PERL_UNUSED_DECL
# endif
-#else
-# define PERL_UNUSED_DECL
#endif
#ifndef NOOP
# define NOOP (void)0
diff --git a/ext/Devel/PPPort/parts/inc/misc b/ext/Devel/PPPort/parts/inc/misc
index 0df0528ac8..84c0511aff 100644
--- a/ext/Devel/PPPort/parts/inc/misc
+++ b/ext/Devel/PPPort/parts/inc/misc
@@ -73,14 +73,16 @@ STMT_END
/* Replace: 0 */
#endif
-#ifdef HASATTRIBUTE
-# if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
-# define PERL_UNUSED_DECL
+#ifndef PERL_UNUSED_DECL
+# ifdef HASATTRIBUTE
+# if (defined(__GNUC__) && defined(__cplusplus)) || defined(__INTEL_COMPILER)
+# define PERL_UNUSED_DECL
+# else
+# define PERL_UNUSED_DECL __attribute__((unused))
+# endif
# else
-# define PERL_UNUSED_DECL __attribute__((unused))
+# define PERL_UNUSED_DECL
# endif
-#else
-# define PERL_UNUSED_DECL
#endif
__UNDEFINED__ NOOP (void)0