Commit d0420fc681d32ba825efeeb08436c787ff7798ad

Linquize 2014-05-01T22:39:35

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,