diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-03 10:01:32 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-03 10:01:32 +0900 |
| commit | 79e2ad9a449366b27f7418a72f61515860715e44 (patch) | |
| tree | 342f56920b36545c4f864e8647caa2a704b382a3 | |
| parent | 5e95f11756c13f730f9bc095f42a444f46f6b8b3 (diff) | |
| download | mruby-79e2ad9a449366b27f7418a72f61515860715e44.tar.gz mruby-79e2ad9a449366b27f7418a72f61515860715e44.zip | |
time.c: Windows does not have `unistd.h`.
| -rw-r--r-- | mrbgems/mruby-time/src/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c index 50d618fc3..626fcdcd0 100644 --- a/mrbgems/mruby-time/src/time.c +++ b/mrbgems/mruby-time/src/time.c @@ -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 " |
