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:
parent
3c5087902d
commit
d5d1b74f90
@ -15,6 +15,7 @@ CommonCHeaders = '
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <locale.h> // tolower
|
#include <locale.h> // tolower
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <unistd.h> // sleep
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
@ -12,12 +12,6 @@ const (
|
|||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
$if !windows {
|
|
||||||
#include <unistd.h> // sleep
|
|
||||||
//#include <sys/wait.h>
|
|
||||||
/// ^^^^ including this makes the windows build fail.
|
|
||||||
}
|
|
||||||
|
|
||||||
struct Time {
|
struct Time {
|
||||||
pub:
|
pub:
|
||||||
year int
|
year int
|
||||||
|
Loading…
Reference in New Issue
Block a user