From 5ce74a3dc4c51ee3844c96247cb8b7fee8da71ac Mon Sep 17 00:00:00 2001 From: Ilya Zakharevich Date: Tue, 31 Jul 2001 01:34:38 -0400 Subject: [PATCH] Allow for GNU-isms in h2xs Message-ID: <20010731053438.A1754@math.ohio-state.edu> p4raw-id: //depot/perl@11518 --- utils/h2xs.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/h2xs.PL b/utils/h2xs.PL index c27d24b..5c3fcff 100644 --- a/utils/h2xs.PL +++ b/utils/h2xs.PL @@ -808,8 +808,9 @@ if( ! $opt_X ){ # use XS, unless it was disabled $filter = $'; } warn "Scanning $filename for functions...\n"; + my @styles = $Config{gccversion} ? qw(C++ C9X GNU) : qw(C++ C9X); $c = new C::Scan 'filename' => $filename, 'filename_filter' => $filter, - 'add_cppflags' => $addflags, 'c_styles' => [qw(C++ C9X)]; + 'add_cppflags' => $addflags, 'c_styles' => \@styles; $c->set('includeDirs' => ["$Config::Config{archlib}/CORE"]); push @$fdecls_parsed, @{ $c->get('parsed_fdecls') }; -- 2.7.4