X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/660d641a03456e99ea83c68dbd3d03bae2b64573..55eaed8f2ad26b9db249e2259c13444c38906795:/client/sleep.h?ds=sidebyside diff --git a/client/sleep.h b/client/sleep.h index 62d9f4d1..81e1dea0 100644 --- a/client/sleep.h +++ b/client/sleep.h @@ -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__