summaryrefslogtreecommitdiff
path: root/utils/h2xs.PL
diff options
context:
space:
mode:
Diffstat (limited to 'utils/h2xs.PL')
-rw-r--r--utils/h2xs.PL3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/h2xs.PL b/utils/h2xs.PL
index c27d24bcd2..5c3fcff51e 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') };