From 80d00323de0e27194779f4925675f1e7a70c89b1 Mon Sep 17 00:00:00 2001 From: troky Date: Tue, 28 Jan 2014 23:52:33 +0100 Subject: [PATCH] VS2010 build: added sleep/usleep macros --- winbuild/dist/include/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winbuild/dist/include/config.h b/winbuild/dist/include/config.h index 9fc5e009..d103ff72 100644 --- a/winbuild/dist/include/config.h +++ b/winbuild/dist/include/config.h @@ -203,6 +203,8 @@ inline void* memmem (void* buf, size_t buflen, void* pat, size_t patlen) return 0; } +#define usleep(x) Sleep((x)/1000) +#define sleep(x) Sleep((x)*1000) #endif