summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-print
diff options
context:
space:
mode:
authorU.Nakamura <[email protected]>2016-09-21 12:58:58 +0900
committerU.Nakamura <[email protected]>2016-09-21 12:58:58 +0900
commite5fedaf67f1c408d5facd9490f091a98c49f3193 (patch)
tree48198c7a9fcf3c28c0eb11f4329f0580f47217d1 /mrbgems/mruby-print
parentc698c67e106efae8ed7c68025b115cd3f7f06512 (diff)
downloadmruby-e5fedaf67f1c408d5facd9490f091a98c49f3193.tar.gz
mruby-e5fedaf67f1c408d5facd9490f091a98c49f3193.zip
Not only for MINGW but also for Visual C++
Diffstat (limited to 'mrbgems/mruby-print')
-rw-r--r--mrbgems/mruby-print/src/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-print/src/print.c b/mrbgems/mruby-print/src/print.c
index f69254076..6184aad5f 100644
--- a/mrbgems/mruby-print/src/print.c
+++ b/mrbgems/mruby-print/src/print.c
@@ -3,7 +3,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-#if defined(__MINGW32__) || defined(__MINGW64__)
+#if defined(_WIN32)
# include <windows.h>
# include <io.h>
#endif
@@ -12,7 +12,7 @@ static void
printstr(mrb_state *mrb, mrb_value obj)
{
if (mrb_string_p(obj)) {
-#if defined(__MINGW32__) || defined(__MINGW64__)
+#if defined(_WIN32)
if (isatty(fileno(stdout))) {
DWORD written;
int mlen = RSTRING_LEN(obj);