In the worst case, old libtiff versions will return a different error.
See http://www.awaresystems.be/imaging/tiff/bigtiff.html for more info.
#ifdef HAVE_TIFF
if (il->bytes_total >= 10 &&
(memcmp(il->mapped_file, "MM\0*", 4) == 0 ||
+ memcmp(il->mapped_file, "MM\0+\0\x08\0\0", 8) == 0 ||
+ memcmp(il->mapped_file, "II+\0\x08\0\0\0", 8) == 0 ||
memcmp(il->mapped_file, "II*\0", 4) == 0))
{
DEBUG_1("Using custom tiff loader");