mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 13:02:13 +01:00
Update ruby/compat.h
The exceptions for Rubinius are unnecessary now and are actually causing msgpack not to install due to the incorrect function prototypes that are in this file. In MRI, this is the prototype VALUE rb_gc_enable(); Anyway, these are unnecessary for Rubinius.
This commit is contained in:
parent
eae0532b8c
commit
b62a6ae1d0
@ -44,12 +44,8 @@ extern VALUE s_enc_utf8_value;
|
|||||||
|
|
||||||
#ifndef RBIGNUM_POSITIVE_P
|
#ifndef RBIGNUM_POSITIVE_P
|
||||||
|
|
||||||
/* Rubinius */
|
|
||||||
#if defined(RUBINIUS)
|
|
||||||
#define RBIGNUM_POSITIVE_P(b) (rb_funcall(b, rb_intern(">="), 1, INT2FIX(0)) == Qtrue)
|
|
||||||
|
|
||||||
/* JRuby */
|
/* JRuby */
|
||||||
#elif defined(JRUBY)
|
#if defined(JRUBY)
|
||||||
#define RBIGNUM_POSITIVE_P(b) (rb_funcall(b, rb_intern(">="), 1, INT2FIX(0)) == Qtrue)
|
#define RBIGNUM_POSITIVE_P(b) (rb_funcall(b, rb_intern(">="), 1, INT2FIX(0)) == Qtrue)
|
||||||
#define rb_big2ull(b) rb_num2ull(b)
|
#define rb_big2ull(b) rb_num2ull(b)
|
||||||
/*#define rb_big2ll(b) rb_num2ll(b)*/
|
/*#define rb_big2ll(b) rb_num2ll(b)*/
|
||||||
@ -62,13 +58,8 @@ extern VALUE s_enc_utf8_value;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Rubinius */
|
|
||||||
#if defined(RUBINIUS)
|
|
||||||
static inline void rb_gc_enable() { return; }
|
|
||||||
static inline void rb_gc_disable() { return; }
|
|
||||||
|
|
||||||
/* JRuby */
|
/* JRuby */
|
||||||
#elif defined(JRUBY)
|
#if defined(JRUBY)
|
||||||
static inline void rb_gc_enable() { return; }
|
static inline void rb_gc_enable() { return; }
|
||||||
static inline void rb_gc_disable() { return; }
|
static inline void rb_gc_disable() { return; }
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user