From b62a6ae1d037bca285c15506a6a0b38b3ba679ba Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Sun, 16 Dec 2012 16:27:05 -0800 Subject: [PATCH] Update ruby/compat.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- ruby/compat.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ruby/compat.h b/ruby/compat.h index eb47f008..5d0f12f7 100644 --- a/ruby/compat.h +++ b/ruby/compat.h @@ -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