Skip to content

Commit

Permalink
Use non-underscore'ed names
Browse files Browse the repository at this point in the history
Accept @mattn's comment.
  • Loading branch information
unak committed Sep 21, 2016
1 parent 37d2d57 commit 36c0847
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mrbgems/mruby-print/src/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 36c0847

Please sign in to comment.