diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-02-20 23:38:28 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-02-22 20:26:55 +0900 |
| commit | a09cecfffd5151adfc50e343c821ed8ebdd1ab87 (patch) | |
| tree | 41b97f6dfceb7170df01f9d1aa7aeb5e01103e20 /src/modules/perlcore | |
| parent | c4566646d9e7c8e69c28e445d5006ab1d881df41 (diff) | |
| download | kvirc-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.h | 14 |
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 |
