diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-13 16:21:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-13 16:21:06 +0000 |
commit | 262437b4570087e5743a3db71b550a1d6448401b (patch) | |
tree | a7106d5cad85715bc5a4afa3326563587715b83d /iseq.h | |
parent | 0614a6e5d002edfa8a3cc68cc10b9d861a3f1856 (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.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; |