diff options
| author | U.Nakamura <[email protected]> | 2016-09-21 14:39:08 +0900 |
|---|---|---|
| committer | U.Nakamura <[email protected]> | 2016-09-21 14:39:08 +0900 |
| commit | 36c08476d92f3763c2afdc0ed82a8af1552e994c (patch) | |
| tree | 704359a251fce41d885a5315280cb8691228eb40 | |
| parent | 37d2d57d633690c350aab6a145bf6f323d8bf332 (diff) | |
| download | mruby-36c08476d92f3763c2afdc0ed82a8af1552e994c.tar.gz mruby-36c08476d92f3763c2afdc0ed82a8af1552e994c.zip | |
Use non-underscore'ed names
Accept @mattn's comment.
| -rw-r--r-- | mrbgems/mruby-print/src/print.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mrbgems/mruby-print/src/print.c b/mrbgems/mruby-print/src/print.c index 4dea020a0..da5f36789 100644 --- a/mrbgems/mruby-print/src/print.c +++ b/mrbgems/mruby-print/src/print.c @@ -6,6 +6,10 @@ #if defined(_WIN32) # include <windows.h> # include <io.h> +#ifdef _MSC_VER +# define isatty(x) _isatty(x) +# define fileno(x) _fileno(x) +#endif #endif static void @@ -13,7 +17,7 @@ printstr(mrb_state *mrb, mrb_value obj) { if (mrb_string_p(obj)) { #if defined(_WIN32) - if (_isatty(_fileno(stdout))) { + if (isatty(fileno(stdout))) { DWORD written; int mlen = RSTRING_LEN(obj); char* utf8 = RSTRING_PTR(obj); |
