Problem with h2xs
David Cannings [Mon, 3 May 2004 13:44:33 +0000 (14:44 +0100)]
Message-Id: <200405031344.33723.lists@edeca.net>
(Second patch only)

p4raw-id: //depot/perl@22782

utils/h2xs.PL

index 5d27e67..2e8e23e 100644 (file)
@@ -981,6 +981,8 @@ if( ! $opt_X ){  # use XS, unless it was disabled
        'add_cppflags' => $addflags, 'c_styles' => \@styles;
       $c->set('includeDirs' => ["$Config::Config{archlib}/CORE", $cwd]);
 
+      $c->get('keywords')->{'__restrict'} = 1;
+
       push @$fdecls_parsed, @{ $c->get('parsed_fdecls') };
       push(@$fdecls, @{$c->get('fdecls')});