[svn-r6618]

Purpose: Bug fix

Description: On HP11.00 and True64 systems strtoll function that is used
             to read text to long integers is not available. Compilation
             fails for h5import.c

Solution: Replace strtoll with HDstrtoll. HDstrtoll is a private HDF5 function
          defined in H5private.h file, but this include file was already used
          by h5import for some other reasons. It would be probably better
          to choose strtol or strtoll functions at the configuration
          time, but HDstrtoll provided really simple solution for now.

Platforms tested: arabica (to test that where it was working, it is still working),
                  kelgia (HP11.00) and PSC True64 machine.

Misc. update:
This commit is contained in:
Elena Pourmal 2003-04-09 17:15:15 -05:00
parent ca9591caed
commit 79890b5022

View File

@ -454,7 +454,7 @@ readIntegerData(FILE **strm, struct Input *in)
(void) fprintf(stderr, err1);
return (-1);
}
*in64 = (H5DT_INT64) strtoll(buffer, NULL, 10);
*in64 = (H5DT_INT64) HDstrtoll(buffer, NULL, 10);
}
break;
@ -620,7 +620,7 @@ readUIntegerData(FILE **strm, struct Input *in)
(void) fprintf(stderr, err1);
return (-1);
}
*in64 = (H5DT_UINT64) strtoll(buffer, NULL, 10);
*in64 = (H5DT_UINT64) HDstrtoll(buffer, NULL, 10);
}
break;