mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 01:45:11 +00:00
Merge pull request #2318 from linquize/sleep
Make examples/status.c compile on Windows
This commit is contained in:
commit
89e9c1674c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user