]> git.imager.perl.org - imager.git/commitdiff
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 c8a8c38521a899ba93e1ac2001b3307ed3f2d7b1..82fb46a5311be867543fc99d2097f58cfa06d6fc 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";
 }