summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-07-04 13:57:20 +0200
committerGravatar Nikias Bassen2012-07-04 13:57:20 +0200
commit7b661e3f25ce783b68b80f185f362cf18c8442df (patch)
tree7fe4b1d2de7911fc9da127771286bb925310ebb9
parentd3232fcba2f1267723bc087e0751ab463489b25b (diff)
downloadlibirecovery-7b661e3f25ce783b68b80f185f362cf18c8442df.tar.gz
libirecovery-7b661e3f25ce783b68b80f185f362cf18c8442df.tar.bz2
win32: use #ifndef to prevent warning about sleep being already defined
-rw-r--r--include/libirecovery.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libirecovery.h b/include/libirecovery.h
index 0af73e6..84d8681 100644
--- a/include/libirecovery.h
+++ b/include/libirecovery.h
@@ -30,8 +30,10 @@ extern "C" {
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef interface
+#ifndef sleep
#define sleep(n) Sleep(1000 * n)
#endif
+#endif
#define APPLE_VENDOR_ID 0x05AC