diff options
| author | b-r-o-c-k <brockmammen@gmail.com> | 2018-03-04 17:44:23 -0600 |
|---|---|---|
| committer | b-r-o-c-k <brockmammen@gmail.com> | 2018-03-04 17:44:23 -0600 |
| commit | 773f23e00d5a4af836a854702ffb9e69fcaf61ff (patch) | |
| tree | 933591455faf93a8e24190d33f76b98304252c77 /test/functional/fixtures/shell-test.c | |
| parent | 01fc02beeee2a4c5ba66e6f93d9fb0d1fd6a4548 (diff) | |
| download | rneovim-773f23e00d5a4af836a854702ffb9e69fcaf61ff.tar.gz rneovim-773f23e00d5a4af836a854702ffb9e69fcaf61ff.tar.bz2 rneovim-773f23e00d5a4af836a854702ffb9e69fcaf61ff.zip | |
build/msvc: Make shell-test work
MSVC doesn't have unistd.h or usleep() so it was replaced with the
Sleep() WinAPI function.
Diffstat (limited to 'test/functional/fixtures/shell-test.c')
| -rw-r--r-- | test/functional/fixtures/shell-test.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/fixtures/shell-test.c b/test/functional/fixtures/shell-test.c index 38695ce76b..cc447d903f 100644 --- a/test/functional/fixtures/shell-test.c +++ b/test/functional/fixtures/shell-test.c @@ -4,7 +4,12 @@ #include <stdio.h> #include <string.h> #include <stdint.h> +#ifdef WIN32 +#include <Windows.h> +#define usleep(usecs) Sleep(usecs/1000) +#else #include <unistd.h> +#endif static void wait(void) { |
