summaryrefslogtreecommitdiffstats
path: root/src/modules/perlcore
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-02-20 23:38:28 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-02-22 20:26:55 +0900
commita09cecfffd5151adfc50e343c821ed8ebdd1ab87 (patch)
tree41b97f6dfceb7170df01f9d1aa7aeb5e01103e20 /src/modules/perlcore
parentc4566646d9e7c8e69c28e445d5006ab1d881df41 (diff)
downloadkvirc-a09cecfffd5151adfc50e343c821ed8ebdd1ab87.tar.gz
kvirc-a09cecfffd5151adfc50e343c821ed8ebdd1ab87.zip
Some generic fixes required for future cmake conversion
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/perlcore')
-rw-r--r--src/modules/perlcore/ppport.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/modules/perlcore/ppport.h b/src/modules/perlcore/ppport.h
index 8c8a706d..f9deb946 100644
--- a/src/modules/perlcore/ppport.h
+++ b/src/modules/perlcore/ppport.h
@@ -217,14 +217,16 @@ __DATA__
/* Replace: 0 */
#endif
-#ifdef HASATTRIBUTE
-# if defined(__GNUC__) && defined(__cplusplus)
-# define PERL_UNUSED_DECL
+#ifndef PERL_UNUSED_DECL
+# ifdef HASATTRIBUTE
+# if defined(__GNUC__) && defined(__cplusplus)
+# 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 dNOOP