diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-07 04:04:33 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-07 04:04:33 +0000 |
commit | 714836c152cf52da40e505157a73ac00f8c3c4f1 (patch) | |
tree | b589ce67759dc0f12823faeecbf777a45ac6ef05 | |
parent | da83d210e08d1ee4cb17b86e8cbb482c9e70da9d (diff) | |
download | ruby-714836c152cf52da40e505157a73ac00f8c3c4f1.tar.gz |
remove declaration of ruby_engine from internal.h
* internal.h (ruby_engine): remove declaration of ruby_engine because
it's declared at ruby/version.h.
* ruby.c: include ruby/version.h for ruby_engine.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | internal.h | 3 | ||||
-rw-r--r-- | ruby.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/internal.h b/internal.h index 8ded0e1343..92b3ba8745 100644 --- a/internal.h +++ b/internal.h @@ -1859,9 +1859,6 @@ void rb_autoload_str(VALUE mod, ID id, VALUE file); void rb_deprecate_constant(VALUE mod, const char *name); NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE)); -/* version.c */ -extern const char ruby_engine[]; - /* vm_insnhelper.h */ rb_serial_t rb_next_class_serial(void); @@ -17,6 +17,7 @@ #endif #include "ruby/encoding.h" #include "ruby/thread.h" +#include "ruby/version.h" #include "internal.h" #include "eval_intern.h" #include "dln.h" |