summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorNAKAMURA Usaku <[email protected]>2012-04-20 15:34:41 +0900
committerNAKAMURA Usaku <[email protected]>2012-04-20 15:34:41 +0900
commitff47338973feec4b09f0025c1ffd02a6cf6eadaa (patch)
tree8e1d9a377d78e56325542cb215af56ccda116bc4 /include/mruby.h
parent3c07f92a2710523940c7c58b0ddfeada2082ed9f (diff)
downloadmruby-ff47338973feec4b09f0025c1ffd02a6cf6eadaa.tar.gz
mruby-ff47338973feec4b09f0025c1ffd02a6cf6eadaa.zip
In mruby.h, there is no definitions of RSTRING_* here, so cannot compile if the compiler is not GCC.
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 506158d3c..123f802ad 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -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);