Skip to content
Permalink
Browse files
Use non-underscore'ed names
Accept @mattn's comment.
  • Loading branch information
unak committed Sep 21, 2016
1 parent 37d2d57 commit 36c08476d92f3763c2afdc0ed82a8af1552e994c
Showing 1 changed file with 5 additions and 1 deletion.
@@ -6,14 +6,18 @@
#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
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);

0 comments on commit 36c0847

Please sign in to comment.