Commit ff9fb4484b1b9913c9ba3a3e8b639e0d26e585df

Vicent Marti 2014-05-22T02:26:56

Merge pull request #2379 from ethomson/status_win32 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
 
 /**