mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
build/msvc: Make shell-test work
MSVC doesn't have unistd.h or usleep() so it was replaced with the Sleep() WinAPI function.
This commit is contained in:
parent
01fc02beee
commit
773f23e00d
@ -4,7 +4,12 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#ifdef WIN32
|
||||||
|
#include <Windows.h>
|
||||||
|
#define usleep(usecs) Sleep(usecs/1000)
|
||||||
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
static void wait(void)
|
static void wait(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user