Commit ead9c591ef6cbad37198421637ae31eec5ab4472

Edward Thomson 2014-05-21T17:25:00

Include windows.h on win32 for Sleep

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/examples/status.c b/examples/status.c
index 9c99744..a59f344 100644
--- a/examples/status.c
+++ b/examples/status.c
@@ -14,9 +14,10 @@
 
 #include "common.h"
 #ifdef _WIN32
-#define sleep(a) Sleep(a * 1000)
+# include <Windows.h>
+# define sleep(a) Sleep(a * 1000)
 #else
-#include <unistd.h>
+# include <unistd.h>
 #endif
 
 /**