From f4f4e9862410bccd9d87aa9388a7ff42d70582df Mon Sep 17 00:00:00 2001 From: Scott Wegner Date: Fri, 22 May 2009 14:37:53 -0500 Subject: [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 --- src/H5win32defs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- cgit v0.12