aboutsummaryrefslogtreecommitdiffstats
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
commit00f374f8a03bbe6a574aa65f6f26304a7c109965 (patch)
treea7106d5cad85715bc5a4afa3326563587715b83d /iseq.h
parent857e5dc13738f925b662b99142789793f50bac2d (diff)
downloadruby-00f374f8a03bbe6a574aa65f6f26304a7c109965.tar.gz
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;