From 79890b50222fa963ef6d110dd5f960d84b574643 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Wed, 9 Apr 2003 17:15:15 -0500 Subject: [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: --- tools/h5import/h5import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/h5import/h5import.c b/tools/h5import/h5import.c index 74ddeab..616b73b 100755 --- a/tools/h5import/h5import.c +++ b/tools/h5import/h5import.c @@ -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; -- cgit v0.12