Mac OS X gui: Don't try to change the interface from a non-main thread. (Should fix...
[vlc.git] / vlc-api.pl
index 247a815..0cb7d52 100755 (executable)
@@ -31,6 +31,7 @@ my $srcdir = $ENV{'top_srcdir'};
 # Reads to-be exported APIs
 #
 my %new_APIs;
+my $new_sym = IO::Handle->new();
 
 while (<STDIN>)
 {
@@ -43,8 +44,7 @@ while (<STDIN>)
 #
 # Write header's header
 #
-my $new_sym=IO::Handle->new();
-open $new_sym, '> vlc_symbols.h.new' or die "$!";
+open $new_sym, '> vlc_symbols.h.new' or die "vlc_symbols.h.new: $!\n";
 print { $new_sym }
        "/*\n".
        " * This file is automatically generated. DO NOT EDIT!\n".