From 705b8b41eb5b01d6ce626e598c7116d0596bd5ba Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 23 Sep 2008 22:43:53 +0000 Subject: * vm_core.h: ruby/ruby.h should be included at the very first place in an entire compilation unit, as it includes ruby/config.h git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ eval_intern.h | 2 +- vm_core.h | 3 +-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1ab65ca31d..21f31765f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Sep 24 07:38:23 2008 URABE Shyouhei + + * vm_core.h: ruby/ruby.h should be included at the very first + place in an entire compilation unit, as it includes + ruby/config.h + Wed Sep 24 06:41:24 2008 Ryan Davis * lib/test/*: removed test/unit. diff --git a/eval_intern.h b/eval_intern.h index 9444e0798b..a961e8af04 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -1,7 +1,7 @@ - #ifndef RUBY_EVAL_INTERN_H #define RUBY_EVAL_INTERN_H +#include "ruby/ruby.h" #include "vm_core.h" #define PASS_PASSED_BLOCK_TH(th) do { \ diff --git a/vm_core.h b/vm_core.h index beb9ac407b..68772cd111 100644 --- a/vm_core.h +++ b/vm_core.h @@ -14,8 +14,6 @@ #define RUBY_VM_THREAD_MODEL 2 -#include - #include "ruby/ruby.h" #include "ruby/vm.h" #include "ruby/st.h" @@ -33,6 +31,7 @@ #error "unsupported thread type" #endif +#include #include #ifndef NSIG -- cgit v1.2.3