Commit 89e9c167 by Vicent Marti

Merge pull request #2318 from linquize/sleep

Make examples/status.c compile on Windows
parents 644592bc d0420fc6
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment