time.c: Windows does not have unistd.h.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-03-03 10:01:32 +09:00
parent 5e95f11756
commit 79e2ad9a44
+2
View File
@@ -21,7 +21,9 @@
#endif
#include <stdlib.h>
#ifdef _WIN32
#include <unistd.h>
#endif
#define NDIV(x,y) (-(-((x)+1)/(y))-1)
#define TO_S_FMT "%Y-%m-%d %H:%M:%S "