summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-05-21 17:25:00 -0700
committerEdward Thomson <ethomson@microsoft.com>2014-05-21 17:25:00 -0700
commitead9c591ef6cbad37198421637ae31eec5ab4472 (patch)
treef0fb22cf430a4095a4628a62351313f259c2573a /examples
parent2bc36faccea049d7e8e87de1c27adfbbdd77e1be (diff)
downloadlibgit2-ead9c591ef6cbad37198421637ae31eec5ab4472.tar.gz
Include windows.h on win32 for Sleep
Diffstat (limited to 'examples')
-rw-r--r--examples/status.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/status.c b/examples/status.c
index 9c99744cb..a59f34454 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
/**