Commit e5fedaf6 authored by U.Nakamura's avatar U.Nakamura

Not only for MINGW but also for Visual C++

parent c698c67e
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#if defined(__MINGW32__) || defined(__MINGW64__) #if defined(_WIN32)
# include <windows.h> # include <windows.h>
# include <io.h> # include <io.h>
#endif #endif
...@@ -12,7 +12,7 @@ static void ...@@ -12,7 +12,7 @@ static void
printstr(mrb_state *mrb, mrb_value obj) printstr(mrb_state *mrb, mrb_value obj)
{ {
if (mrb_string_p(obj)) { if (mrb_string_p(obj)) {
#if defined(__MINGW32__) || defined(__MINGW64__) #if defined(_WIN32)
if (isatty(fileno(stdout))) { if (isatty(fileno(stdout))) {
DWORD written; DWORD written;
int mlen = RSTRING_LEN(obj); int mlen = RSTRING_LEN(obj);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment