summaryrefslogtreecommitdiffstats
path: root/src/H5win32defs.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2016-12-12 19:16:07 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2016-12-12 19:16:07 (GMT)
commit651c2f30304ed9b8e9470039e46279635356a3cc (patch)
tree2609382d7e2a5b80a6193c898a9999bdc9f4193e /src/H5win32defs.h
parent1bdf8fe8f7e4ca75afe2ffb0049e152bc4dbb80d (diff)
downloadhdf5-651c2f30304ed9b8e9470039e46279635356a3cc.zip
hdf5-651c2f30304ed9b8e9470039e46279635356a3cc.tar.gz
hdf5-651c2f30304ed9b8e9470039e46279635356a3cc.tar.bz2
Fix bad implementation of Windows nanosleep equivalent.
Diffstat (limited to 'src/H5win32defs.h')
-rw-r--r--src/H5win32defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index 33d37b6..63c3a16 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -42,7 +42,7 @@ typedef __int64 h5_stat_size_t;
#define HDlseek(F,O,W) _lseeki64(F,O,W)
#define HDlstat(S,B) _lstati64(S,B)
#define HDmkdir(S,M) _mkdir(S)
-#define HDnanosleep(S) Wnanosleep(S)
+#define HDnanosleep(N, O) Wnanosleep(N, O)
#define HDoff_t __int64
/* _O_BINARY must be set in Windows to avoid CR-LF <-> LF EOL
* transformations when performing I/O.
@@ -102,6 +102,7 @@ extern "C" {
H5_DLL char* Wgetlogin(void);
H5_DLL int c99_snprintf(char* str, size_t size, const char* format, ...);
H5_DLL int c99_vsnprintf(char* str, size_t size, const char* format, va_list ap);
+ H5_DLL int Wnanosleep(const struct timespec *req, struct timespec *rem);
/* Round functions only needed for VS2012 and earlier.
* They are always built to ensure they don't go stale and