summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2009-08-17 20:11:49 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2009-08-17 20:11:49 (GMT)
commit167af56bfd13593af8ac74070f5a48235debdebe (patch)
treec8086fa1f26eeb2f2edc51e549f8bbf4d5dd6455
parent0ac57cc17b82116ae1fc313c01d2e12fae1b4c68 (diff)
downloadhdf5-167af56bfd13593af8ac74070f5a48235debdebe.zip
hdf5-167af56bfd13593af8ac74070f5a48235debdebe.tar.gz
hdf5-167af56bfd13593af8ac74070f5a48235debdebe.tar.bz2
[svn-r17371] Added Windows version of HDsleep macro needed for a test in test/tfile.c.
Tested: windows
-rw-r--r--src/H5win32defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index 89b41a0..2a170ea 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -60,6 +60,7 @@ 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 HDsleep(S) Sleep(S*1000)
#define HDstrcasecmp(A,B) _stricmp(A,B)
#define HDstrtoull(S,R,N) _strtoui64(S,R,N)
#define HDstrdup(S) _strdup(S)