Permalink
Browse files

avoid warning about gccversion being non-numeric

  • Loading branch information...
1 parent ea14052 commit 53ea6b6f6eb9b8732a872c506f52cc700222365a @tonycoz committed Aug 8, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile.PL
View
3 Makefile.PL
@@ -734,7 +734,7 @@ EOS
}
print CONFIG "#define $define->[0] $define->[1]\n";
}
- if ($Config{gccversion} && $Config{gccversion} > 3) {
+ if ($Config{gccversion} && $Config{gccversion} =~ /^([0-9]+)/ && $1 > 3) {
print CONFIG <<EOS;
/*
@@ -743,6 +743,7 @@ Compiler supports the GCC __attribute__((format...)) syntax.
*/
#define IMAGER_FORMAT_ATTR 1
+
EOS
}

0 comments on commit 53ea6b6

Please sign in to comment.