make style
This commit is contained in:
parent
181cd914d5
commit
d8a93217ff
1 changed files with 5 additions and 5 deletions
|
@ -50,11 +50,11 @@
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
# include <time.h>
|
# include <time.h>
|
||||||
# define msleep(x) do { \
|
# define msleep(x) do { \
|
||||||
struct timespec xsleep; \
|
struct timespec xsleep; \
|
||||||
xsleep.tv_sec = x / 1000; \
|
xsleep.tv_sec = x / 1000; \
|
||||||
xsleep.tv_nsec = (x - xsleep.tv_sec * 1000) * 1000 * 1000; \
|
xsleep.tv_nsec = (x - xsleep.tv_sec * 1000) * 1000 * 1000; \
|
||||||
nanosleep(&xsleep, NULL); \
|
nanosleep(&xsleep, NULL); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#else
|
#else
|
||||||
# include <winbase.h>
|
# include <winbase.h>
|
||||||
# define msleep Sleep
|
# define msleep Sleep
|
||||||
|
|
Loading…
Reference in a new issue