X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vlc-api.pl;h=1c963a6ad2147a91d6b141c2d725d90cbee8b20d;hb=2e7fbf4659b5dde8bf018b94f4d1422c1b2bda7a;hp=8b22ff437652da8d57ffeb87c0016d328607dbbf;hpb=58f0b81b680496abeb750649e245d8ef626e9d09;p=vlc diff --git a/vlc-api.pl b/vlc-api.pl index 8b22ff4376..1c963a6ad2 100755 --- a/vlc-api.pl +++ b/vlc-api.pl @@ -22,6 +22,7 @@ #* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. #*****************************************************************************/ +use IO::Handle; use strict; my $srcdir = $ENV{'top_srcdir'}; @@ -42,7 +43,8 @@ while () # # Write header's header # -open my $new_sym, '> vlc_symbols.h.new' or die "$!"; +my $new_sym=IO::Handle->new(); +open $new_sym, '> vlc_symbols.h.new' or die "$!"; print { $new_sym } "/*\n". " * This file is automatically generated. DO NOT EDIT!\n". @@ -96,7 +98,8 @@ my @API; my @deprecated_API; my $parse = 0; -open my $oldfd, "< $srcdir/include/vlc_symbols.h"; +my $oldfd = IO::Handle->new(); +open $oldfd, "< $srcdir/include/vlc_symbols.h"; while (<$oldfd>) {