summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-10 06:25:23 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-10 06:25:23 +0000
commit678af70ce8230ea8b88fd2ca2b26fe68b5c4a887 (patch)
treec2d6593921eedc3a2f9956e484e0518f5df22e23 /ext/bigdecimal
parent6434e1e690e757ec8b753133c270e3bbbdaed45f (diff)
* 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
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c5
-rw-r--r--ext/bigdecimal/bigdecimal.h4
2 files changed, 6 insertions, 3 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 2afe3f796d3..e22ad0797fe 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -13,7 +13,8 @@
*
*/
-#include "ruby/ruby.h"
+#include "bigdecimal.h"
+
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
@@ -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 af18a9a8746..fd0957f15a2 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
*/