Permalink
Browse files

Not only for MINGW but also for Visual C++

  • Loading branch information...
unak committed Sep 21, 2016
1 parent c698c67 commit e5fedaf67f1c408d5facd9490f091a98c49f3193
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit e5fedaf

Please sign in to comment.