1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

time: do not include <unistd.h> on windows

This commit is contained in:
Alexander Medvednikov 2019-08-30 01:10:29 +03:00
parent 3c5087902d
commit d5d1b74f90
2 changed files with 1 additions and 6 deletions

View File

@ -15,6 +15,7 @@ CommonCHeaders = '
#include <ctype.h>
#include <locale.h> // tolower
#include <sys/time.h>
#include <unistd.h> // sleep
#endif
#ifdef __APPLE__

View File

@ -12,12 +12,6 @@ const (
#include <time.h>
$if !windows {
#include <unistd.h> // sleep
//#include <sys/wait.h>
/// ^^^^ including this makes the windows build fail.
}
struct Time {
pub:
year int