mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
ITS#8695 - Update Windows to use Sleep instead of deprecated _sleep
This commit is contained in:
parent
a2e9cb1acd
commit
44e1c6535e
1 changed files with 3 additions and 3 deletions
|
|
@ -61,12 +61,12 @@ LDAP_LUTIL_F(char*)(lutil_getpass) LDAP_P((const char *getpass));
|
|||
/*
|
||||
* Windows: although sleep() will be resolved by both MSVC and Mingw GCC
|
||||
* linkers, the function is not declared in header files. This is
|
||||
* because Windows' version of the function is called _sleep(), and it
|
||||
* is declared in stdlib.h
|
||||
* because Windows' version of the function is called Sleep(), and it
|
||||
* is declared in windows.h
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#define sleep _sleep
|
||||
#define sleep(x) Sleep((x) * 1000)
|
||||
#endif
|
||||
|
||||
#endif /* _AC_UNISTD_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue