adjust the IEEEFP check for older versions of perl
authorTony Cook <tony@develop-help.com>
Mon, 1 Jul 2013 12:30:57 +0000 (22:30 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 1 Jul 2013 12:30:57 +0000 (22:30 +1000)
without the byte order pack modifier

TIFF/Makefile.PL

index c8a8c38..82fb46a 100644 (file)
@@ -18,8 +18,8 @@ our %IMAGER_LIBS;
 my $MM_ver = eval $ExtUtils::MakeMaker::VERSION;
 
 my $define = "";
-my $fp_rep = unpack("H*", pack("f<", 1.25));
-if ($fp_rep eq "0000a03f") {
+my $fp_rep = unpack("H*", pack("f", 1.25));
+if ($fp_rep eq "0000a03f" || $fp_rep eq "3fa00000") {
   $define = "-DIEEEFP_TYPES";
 }