This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Problem with h2xs
authorDavid Cannings <lists@edeca.net>
Mon, 3 May 2004 13:44:33 +0000 (14:44 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Wed, 5 May 2004 16:14:25 +0000 (16:14 +0000)
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')});