Skip to content

Commit

Permalink
Attempting to use tempfile with new versions of File::Temp. Ref: http…
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 11, 2013
1 parent 75942f1 commit 89d8ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Alien/SDL2.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use File::ShareDir qw(dist_dir);
use File::Spec;
use File::Find;
use File::Spec::Functions qw(catdir catfile rel2abs);
use File::Temp;
use File::Temp qw(tempfile);
use Capture::Tiny;
use Config;

Expand Down Expand Up @@ -240,7 +240,7 @@ sub check_header {
}

my $cb = ExtUtils::CBuilder->new( quiet => 1, config => $config );
my ($fs, $src) = File::Temp->tempfile('XXXXaa', SUFFIX => '.c', UNLINK => 1);
my ($fs, $src) = tempfile('XXXXaa', SUFFIX => '.c', UNLINK => 1);
my $inc = '';
my $i = 0;
foreach (@header) {
Expand Down

0 comments on commit 89d8ba5

Please sign in to comment.