summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-13 16:21:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-13 16:21:06 +0000
commit262437b4570087e5743a3db71b550a1d6448401b (patch)
treea7106d5cad85715bc5a4afa3326563587715b83d /iseq.h
parent0614a6e5d002edfa8a3cc68cc10b9d861a3f1856 (diff)
Remove compile-time dependencies on ruby/version.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/iseq.h b/iseq.h
index 442ad55c88..2d421a06d7 100644
--- a/iseq.h
+++ b/iseq.h
@@ -12,10 +12,9 @@
#ifndef RUBY_ISEQ_H
#define RUBY_ISEQ_H 1
-#include "ruby/version.h"
-
-#define ISEQ_MAJOR_VERSION RUBY_API_VERSION_MAJOR
-#define ISEQ_MINOR_VERSION RUBY_API_VERSION_MINOR
+RUBY_EXTERN const int ruby_api_version[];
+#define ISEQ_MAJOR_VERSION ((unsigned int)ruby_api_version[0])
+#define ISEQ_MINOR_VERSION ((unsigned int)ruby_api_version[1])
#ifndef rb_iseq_t
typedef struct rb_iseq_struct rb_iseq_t;