mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
client should compile without warnings on linux, mac, windows
This commit is contained in:
parent
19d9a7b0ce
commit
759c16b31f
11 changed files with 106 additions and 35 deletions
|
@ -12,13 +12,16 @@
|
|||
#define SLEEP_H__
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#define sleep(n) Sleep(1000 * n)
|
||||
#define msleep(n) Sleep(n)
|
||||
# include <windows.h>
|
||||
# define sleep(n) Sleep(1000 * n)
|
||||
# define msleep(n) Sleep(n)
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#define msleep(n) usleep(1000 * n)
|
||||
#endif
|
||||
# include <inttypes.h>
|
||||
# include <unistd.h>
|
||||
void nsleep(uint64_t n);
|
||||
# define msleep(n) nsleep(1000000 * n)
|
||||
# define usleep(n) nsleep(1000 * n)
|
||||
#endif // _WIN32
|
||||
|
||||
#endif
|
||||
#endif // SLEEP_H__
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue