summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-23 22:43:53 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-23 22:43:53 +0000
commit705b8b41eb5b01d6ce626e598c7116d0596bd5ba (patch)
treebe9100a4030abeaafd584d10c88d5f4d941318e8
parent187812978af1513fdb549415f7f6c1953e04e0e1 (diff)
* 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
-rw-r--r--ChangeLog6
-rw-r--r--eval_intern.h2
-rw-r--r--vm_core.h3
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ab65ca3..21f3176 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Sep 24 07:38:23 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * 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 <ryand-ruby@zenspider.com>
* lib/test/*: removed test/unit.
diff --git a/eval_intern.h b/eval_intern.h
index 9444e07..a961e8a 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 beb9ac4..68772cd 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -14,8 +14,6 @@
#define RUBY_VM_THREAD_MODEL 2
-#include <setjmp.h>
-
#include "ruby/ruby.h"
#include "ruby/vm.h"
#include "ruby/st.h"
@@ -33,6 +31,7 @@
#error "unsupported thread type"
#endif
+#include <setjmp.h>
#include <signal.h>
#ifndef NSIG