winapi: Small tweaks to fix perl warnings.

Francois Gouget fgouget at free.fr
Fri Sep 20 04:49:34 CDT 2013


perl says defined(@array) is deprecated.
---
 tools/winapi/options.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/winapi/options.pm b/tools/winapi/options.pm
index 749b9b7..3daeb11 100644
--- a/tools/winapi/options.pm
+++ b/tools/winapi/options.pm
@@ -414,7 +414,7 @@ sub c_files($) {
 
     my $c_files = \@{$self->{_C_FILES}};
 
-    if(!defined(@$c_files)) {
+    if(!@$c_files) {
 	$self->parse_files;
     }
 
@@ -426,7 +426,7 @@ sub h_files($) {
 
     my $h_files = \@{$self->{_H_FILES}};
 
-    if(!defined(@$h_files)) {
+    if(!@$h_files) {
 	$self->parse_files;
     }
 
@@ -438,7 +438,7 @@ sub directories($) {
 
     my $directories = \@{$self->{_DIRECTORIES}};
 
-    if(!defined(@$directories)) {
+    if(!@$directories) {
 	$self->parse_files;
     }
 
-- 
1.8.4.rc3



More information about the wine-patches mailing list