This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
move and clean-up macros wrapping __attribute__()
authorTomasz Konojacki <me@xenu.pl>
Fri, 17 Jan 2020 20:32:55 +0000 (21:32 +0100)
committerKarl Williamson <khw@cpan.org>
Sat, 18 Jan 2020 04:49:35 +0000 (21:49 -0700)
commit09f0a3485347d5644ea197290977dc41a0487f31
tree575beb1e8fa8e6b106c27b849de5da173635a4b2
parenta4aa12d5f46c2e737afb51508c0bd24430915fe7
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.
perl.h
win32/win32.h