summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--complex.c4
-rw-r--r--rational.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index c2b1545708..30d11ba55b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Dec 12 10:20:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c, rational.c: do not use RUBY_VERSION_CODE.
+
Fri Dec 12 10:19:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_string_value_ptr, rb_to_id): do not use a side
diff --git a/complex.c b/complex.c
index 6dc09526d5..a7c01da670 100644
--- a/complex.c
+++ b/complex.c
@@ -320,9 +320,7 @@ f_complex_new_bang2(VALUE klass, VALUE x, VALUE y)
return nucomp_s_new_internal(klass, x, y);
}
-#ifndef RUBY_VERSION_CODE
-#include "version.h"
-#endif
+#define RUBY_VERSION_CODE 0
#if RUBY_VERSION_CODE < 200
#define CANON
diff --git a/rational.c b/rational.c
index 82628594d3..ac28822bdd 100644
--- a/rational.c
+++ b/rational.c
@@ -377,9 +377,7 @@ f_rational_new_bang2(VALUE klass, VALUE x, VALUE y)
return nurat_s_new_internal(klass, x, y);
}
-#ifndef RUBY_VERSION_CODE
-#include "version.h"
-#endif
+#define RUBY_VERSION_CODE 0
#if RUBY_VERSION_CODE < 200
#define CANON