summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-29 16:06:00 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-29 16:06:00 +0000
commiteea774d0295e422a5231124c25aae11c39fb2abd (patch)
tree56280d1843b9cf6a3c9ea68a396673d6e9c66d5d /include
parent29b1c2a501185db16e23c4ab46659b975d921d9c (diff)
* include/ruby/ruby.h: Added NUM2MODET() and MODET2NUM() default definition.
Because r30686 introduced win32 build failure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index aca517ca61..8ecb0f2405 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -315,6 +315,12 @@ rb_long2int(long n) {rb_long2int_internal(n, i); return i;}
#ifndef NUM2GIDT
#define NUM2GIDT(v) NUM2LONG(v)
#endif
+#ifndef NUM2MODET
+#define NUM2MODET(v) NUM2INT(v)
+#endif
+#ifndef MODET2NUM
+#define MODET2NUM(v) INT2NUM(v)
+#endif
#define FIX2LONG(x) (long)RSHIFT((SIGNED_VALUE)(x),1)
#define FIX2ULONG(x) ((((VALUE)(x))>>1)&LONG_MAX)