diff options
author | Tomasz Konojacki <me@xenu.pl> | 2020-01-17 21:32:55 +0100 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-01-17 21:49:35 -0700 |
commit | 09f0a3485347d5644ea197290977dc41a0487f31 (patch) | |
tree | 575beb1e8fa8e6b106c27b849de5da173635a4b2 /win32 | |
parent | a4aa12d5f46c2e737afb51508c0bd24430915fe7 (diff) | |
download | perl-09f0a3485347d5644ea197290977dc41a0487f31.tar.gz |
move and clean-up macros wrapping __attribute__()
__attribute__() detection fallback for non-Configure platforms
(such as Windows) in perl.h was moved above the PERL_UNUSED_DECL
definition. That fixed two problems:
- PERL_UNUSED_DECL was undefined on those platforms
- __attribute__* macros weren't working properly inside headers
included above their definitions (e.g. "win32.h")
Also, redundant checks for pre-3.4 g++ versions were removed.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/win32/win32.h b/win32/win32.h index 6311115b0a..e9138af7a3 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -70,11 +70,6 @@ # define __int64 long long # endif # define Win32_Winsock -#ifdef __cplusplus -/* Mingw32 gcc -xc++ objects to __attribute((unused)) at least */ -#undef PERL_UNUSED_DECL -#define PERL_UNUSED_DECL -#endif #endif |