diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-04-28 22:32:12 +0900 |
|---|---|---|
| committer | Hiroshi Mimaki <[email protected]> | 2020-05-07 09:36:21 +0900 |
| commit | 7dc0fe66c7d0356211d48076e22028987bbbc0a9 (patch) | |
| tree | b12c8aeade607deb7ed9297e437ca104142a1789 | |
| parent | 1cdcd00cc082b7e1f47ac28f8f1cf83474ffe5e7 (diff) | |
| download | mruby-7dc0fe66c7d0356211d48076e22028987bbbc0a9.tar.gz mruby-7dc0fe66c7d0356211d48076e22028987bbbc0a9.zip | |
Add `#include <string.h>` on all platforms for `strncpy`; #4981
| -rw-r--r-- | mrbgems/mruby-io/test/mruby_io_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c index 36872e7b7..e023b1904 100644 --- a/mrbgems/mruby-io/test/mruby_io_test.c +++ b/mrbgems/mruby-io/test/mruby_io_test.c @@ -1,6 +1,7 @@ #include <mruby/common.h> #include <sys/types.h> #include <errno.h> +#include <string.h> #if defined(_WIN32) || defined(_WIN64) @@ -8,7 +9,6 @@ #include <io.h> #include <fcntl.h> #include <direct.h> -#include <string.h> #include <stdlib.h> #include <malloc.h> |
