mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-04-12 17:31:09 +08:00
Fix bad implementation of Windows nanosleep equivalent.
This commit is contained in:
parent
1bdf8fe8f7
commit
651c2f3030
@ -923,13 +923,12 @@ Wflock(int fd, int operation) {
|
||||
* Fall 2016
|
||||
*--------------------------------------------------------------------------
|
||||
*/
|
||||
void
|
||||
Wnanosleep(uint64_t nanosec)
|
||||
int
|
||||
Wnanosleep(const struct timespec *req, struct timespec *rem)
|
||||
{
|
||||
/* XXX: Currently just a placeholder */
|
||||
FUNC_ENTER_NOAPI_NOINIT_NOERR
|
||||
return 0;
|
||||
|
||||
FUNC_LEAVE_NOAPI_VOID
|
||||
} /* end Wnanosleep() */
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user