1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix the usleep() macro in the Win32 test code for lsm1.

FossilOrigin-Name: 63599fa524a7c72ffa5362041f2ec394d9af9c43025d8b6d5a34e98eb423d5ff
This commit is contained in:
mistachkin
2017-07-07 17:57:21 +00:00
parent d5eae667f4
commit 9b8c5f6819
3 changed files with 9 additions and 10 deletions

View File

@ -20,7 +20,7 @@ extern "C" {
# define gettimeofday win32GetTimeOfDay
# define F_OK (0)
# define sleep(sec) Sleep(1000 * (sec))
# define usleep(usec) Sleep((usec) / 1000)
# define usleep(usec) Sleep(((usec) + 999) / 1000)
# ifdef _MSC_VER
# include <io.h>
# define snprintf _snprintf