Skip to content

Commit e5fedaf

Browse files
committed
Not only for MINGW but also for Visual C++
1 parent c698c67 commit e5fedaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mrbgems/mruby-print/src/print.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <stdio.h>
44
#include <string.h>
55
#include <stdlib.h>
6-
#if defined(__MINGW32__) || defined(__MINGW64__)
6+
#if defined(_WIN32)
77
# include <windows.h>
88
# include <io.h>
99
#endif
@@ -12,7 +12,7 @@ static void
1212
printstr(mrb_state *mrb, mrb_value obj)
1313
{
1414
if (mrb_string_p(obj)) {
15-
#if defined(__MINGW32__) || defined(__MINGW64__)
15+
#if defined(_WIN32)
1616
if (isatty(fileno(stdout))) {
1717
DWORD written;
1818
int mlen = RSTRING_LEN(obj);

0 commit comments

Comments
 (0)