time: do not include <unistd.h> on windows
parent
3c5087902d
commit
d5d1b74f90
|
@ -15,6 +15,7 @@ CommonCHeaders = '
|
|||
#include <ctype.h>
|
||||
#include <locale.h> // tolower
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h> // sleep
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue