mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-01 21:26:43 +00:00
make style
This commit is contained in:
@@ -50,11 +50,11 @@
|
||||
#ifndef _WIN32
|
||||
# include <time.h>
|
||||
# define msleep(x) do { \
|
||||
struct timespec xsleep; \
|
||||
xsleep.tv_sec = x / 1000; \
|
||||
xsleep.tv_nsec = (x - xsleep.tv_sec * 1000) * 1000 * 1000; \
|
||||
nanosleep(&xsleep, NULL); \
|
||||
} while (0)
|
||||
struct timespec xsleep; \
|
||||
xsleep.tv_sec = x / 1000; \
|
||||
xsleep.tv_nsec = (x - xsleep.tv_sec * 1000) * 1000 * 1000; \
|
||||
nanosleep(&xsleep, NULL); \
|
||||
} while (0)
|
||||
#else
|
||||
# include <winbase.h>
|
||||
# define msleep Sleep
|
||||
|
||||
Reference in New Issue
Block a user