summaryrefslogtreecommitdiff
path: root/iseq.h
diff options
context:
space:
mode:
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;