diff options
author | Scott Wegner <swegner@hdfgroup.org> | 2009-05-22 19:37:53 (GMT) |
---|---|---|
committer | Scott Wegner <swegner@hdfgroup.org> | 2009-05-22 19:37:53 (GMT) |
commit | f4f4e9862410bccd9d87aa9388a7ff42d70582df (patch) | |
tree | 4eff96f881352367cfc95455ad43e186959a94c4 | |
parent | eeae6b119a0e382d7a1c4646be72e2cc5b8929f5 (diff) | |
download | hdf5-f4f4e9862410bccd9d87aa9388a7ff42d70582df.zip hdf5-f4f4e9862410bccd9d87aa9388a7ff42d70582df.tar.gz hdf5-f4f4e9862410bccd9d87aa9388a7ff42d70582df.tar.bz2 |
[svn-r16980] Purpose: Add new Windows def. for HDstroull, as the function isn't natively available.
Description:
Tests were failing for the HDF5 trunk on Windows because Windows does not provide the strtoul function. However, there is a replacement, _strtoui64. This definition has been added to the H5win32defs.h file, similar to other such replacement functions.
Tested:
VS2005 on Vista
h5committest
-rw-r--r-- | src/H5win32defs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h index 49e445d..93695fb 100644 --- a/src/H5win32defs.h +++ b/src/H5win32defs.h @@ -60,7 +60,8 @@ typedef __int64 h5_stat_size_t; #define HDopen(S,F,M) _open(S,F|_O_BINARY,M) #define HDread(F,M,Z) _read(F,M,Z) #define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,(Z>1?Z:2)) -#define HDstrcasecmp(A,B) _stricmp(A,B) +#define HDstrcasecmp(A,B) _stricmp(A,B) +#define HDstrtoull(S,R,N) _strtoui64(S,R,N) #define HDstrdup(S) _strdup(S) #define HDsnprintf _snprintf /*varargs*/ #define HDtzset() _tzset() |