From 678af70ce8230ea8b88fd2ca2b26fe68b5c4a887 Mon Sep 17 00:00:00 2001 From: mrkn Date: Tue, 10 Aug 2010 06:25:23 +0000 Subject: [PATCH] * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c: add extern declaration of rb_cBigDecimal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/bigdecimal/bigdecimal.c | 5 ++--- ext/bigdecimal/bigdecimal.h | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4a275c0090..12c6c4a218 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 10 15:19:45 2010 Kenta Murata + + * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c: + add extern declaration of rb_cBigDecimal. + Tue Aug 10 14:09:31 2010 NARUSE, Yui * lib/webrick/httprequest.rb (WEBrick::HTTPRequest::parse_uri): diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 2afe3f796d..e22ad0797f 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -13,7 +13,8 @@ * */ -#include "ruby/ruby.h" +#include "bigdecimal.h" + #include #include #include @@ -31,8 +32,6 @@ VALUE rb_cBigDecimal; -#include "bigdecimal.h" - /* MACRO's to guard objects from GC by keeping them in stack */ #define ENTER(n) volatile VALUE vStack[n];int iStack=0 #define PUSH(x) vStack[iStack++] = (unsigned long)(x); diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h index af18a9a874..fd0957f15a 100644 --- a/ext/bigdecimal/bigdecimal.h +++ b/ext/bigdecimal/bigdecimal.h @@ -16,10 +16,14 @@ #ifndef ____BIG_DECIMAL__H____ #define ____BIG_DECIMAL__H____ +#include "ruby/ruby.h" + #if defined(__cplusplus) extern "C" { #endif +extern VALUE rb_cBigDecimal; + /* * NaN & Infinity */