From: Tony Cook Date: Mon, 1 Jul 2013 12:30:57 +0000 (+1000) Subject: adjust the IEEEFP check for older versions of perl X-Git-Tag: v0.96_01~2 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/a24e8b4a654f04c5ac62435c9a99aa297f139dbb adjust the IEEEFP check for older versions of perl without the byte order pack modifier --- diff --git a/TIFF/Makefile.PL b/TIFF/Makefile.PL index c8a8c385..82fb46a5 100644 --- a/TIFF/Makefile.PL +++ b/TIFF/Makefile.PL @@ -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"; }