Commit 89e9c1674c3a32758e31c400609b6f4351bbde4c

Vicent Marti 2014-05-02T03:37:40

Merge pull request #2318 from linquize/sleep Make examples/status.c compile on Windows

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