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:
Brian Ford 2012-12-16 16:27:05 -08:00
parent eae0532b8c
commit b62a6ae1d0

View File

@ -44,12 +44,8 @@ extern VALUE s_enc_utf8_value;
#ifndef RBIGNUM_POSITIVE_P
/* Rubinius */
#if defined(RUBINIUS)
#define RBIGNUM_POSITIVE_P(b) (rb_funcall(b, rb_intern(">="), 1, INT2FIX(0)) == Qtrue)
/* JRuby */
#elif defined(JRUBY)
#if defined(JRUBY)
#define RBIGNUM_POSITIVE_P(b) (rb_funcall(b, rb_intern(">="), 1, INT2FIX(0)) == Qtrue)
#define rb_big2ull(b) rb_num2ull(b)
/*#define rb_big2ll(b) rb_num2ll(b)*/
@ -62,13 +58,8 @@ extern VALUE s_enc_utf8_value;
#endif
/* Rubinius */
#if defined(RUBINIUS)
static inline void rb_gc_enable() { return; }
static inline void rb_gc_disable() { return; }
/* JRuby */
#elif defined(JRUBY)
#if defined(JRUBY)
static inline void rb_gc_enable() { return; }
static inline void rb_gc_disable() { return; }
#endif