diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-08 09:37:10 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-08 09:37:50 +0900 |
| commit | 6ebcb7417a7a9b0a01062ff71a8383e27e91c0d8 (patch) | |
| tree | db9878342bd194d8f79557cb9c1f44bbe397876f | |
| parent | 9df7bceb156d9eb5262fc742fa83f025f64b9d09 (diff) | |
| download | mruby-6ebcb7417a7a9b0a01062ff71a8383e27e91c0d8.tar.gz mruby-6ebcb7417a7a9b0a01062ff71a8383e27e91c0d8.zip | |
AppVeyor compile errors resolution.
| -rw-r--r-- | mrbgems/mruby-io/test/mruby_io_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-io/test/mruby_io_test.c b/mrbgems/mruby-io/test/mruby_io_test.c index 35dce463e..29d91f536 100644 --- a/mrbgems/mruby-io/test/mruby_io_test.c +++ b/mrbgems/mruby-io/test/mruby_io_test.c @@ -5,6 +5,7 @@ #include <winsock.h> #include <io.h> +#include <fcntl.h> #include <direct.h> #include <string.h> #include <stdlib.h> @@ -16,10 +17,9 @@ static int mkstemp(char *p) { char *template, *path; - char *path; int fd; - template = strdup(p); + template = _strdup(p); if (template == NULL) return -1; path = _mktemp(template); if (path[0] == 0) { |
