Permalink
Browse files

In mruby.h, there is no definitions of RSTRING_* here, so cannot comp…

…ile if the compiler is not GCC.
  • Loading branch information...
1 parent 3c07f92 commit ff47338973feec4b09f0025c1ffd02a6cf6eadaa @unak unak committed Apr 20, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 include/mruby.h
View
@@ -441,11 +441,14 @@ void mrb_bug(const char *fmt, ...);
#ifdef __GNUC__
# define NUM2CHR(x) __extension__ ({mrb_value num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
#else
+/* TODO: there is no definitions of RSTRING_* here, so cannot compile.
static inline char
NUM2CHR(mrb_value x)
{
return NUM2CHR_internal(x);
}
+*/
+#define NUM2CHR(x) NUM2CHR_internal(x)
#endif
mrb_value mrb_io_gets(mrb_state *mrb, mrb_value);
mrb_value mrb_io_getbyte(mrb_state *mrb, mrb_value);

0 comments on commit ff47338

Please sign in to comment.