From 58f1d31a1ddd071f092600d155601592f3930163 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 27 Jul 2010 09:33:55 +0000 Subject: * defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include config.h and defines.h for autoconf macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ include/ruby/defines.h | 5 +++++ include/ruby/intern.h | 5 +++++ include/ruby/missing.h | 5 +++++ include/ruby/ruby.h | 2 -- include/ruby/st.h | 6 ------ include/ruby/util.h | 5 +++++ 7 files changed, 25 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 57733d8324..7214d436db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jul 27 18:33:42 2010 Nobuyoshi Nakada + + * defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include + config.h and defines.h for autoconf macros. + Tue Jul 27 16:27:38 2010 NAKAMURA Usaku * numeric.c (flo_cmp): typo. diff --git a/include/ruby/defines.h b/include/ruby/defines.h index 45b19bdc58..51b2eb816d 100644 --- a/include/ruby/defines.h +++ b/include/ruby/defines.h @@ -17,6 +17,11 @@ extern "C" { #endif #endif +#include "ruby/config.h" +#ifdef RUBY_EXTCONF_H +#include RUBY_EXTCONF_H +#endif + #define RUBY #include diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 8c3c32e226..338c8bb1b7 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -21,6 +21,11 @@ extern "C" { #endif #endif +#include "ruby/defines.h" +#ifdef RUBY_EXTCONF_H +#include RUBY_EXTCONF_H +#endif + #ifdef HAVE_STDARG_PROTOTYPES # include #else diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 6d5ace5ed0..bed633d379 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -18,6 +18,11 @@ extern "C" { #endif #endif +#include "ruby/config.h" +#ifdef RUBY_EXTCONF_H +#include RUBY_EXTCONF_H +#endif + #if defined(HAVE_SYS_TIME_H) # include #elif !defined(_WIN32) diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 11e3bb819a..576e4cd23c 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -21,12 +21,10 @@ extern "C" { #endif #endif -#ifndef RUBY_LIB_PREFIX #include "ruby/config.h" #ifdef RUBY_EXTCONF_H #include RUBY_EXTCONF_H #endif -#endif #define NORETURN_STYLE_NEW 1 #ifndef NORETURN diff --git a/include/ruby/st.h b/include/ruby/st.h index 53e82618f1..5627124e39 100644 --- a/include/ruby/st.h +++ b/include/ruby/st.h @@ -12,13 +12,7 @@ extern "C" { #endif #endif -#ifndef RUBY_LIB_PREFIX -#include "ruby/config.h" #include "ruby/defines.h" -#ifdef RUBY_EXTCONF_H -#include RUBY_EXTCONF_H -#endif -#endif #if defined STDC_HEADERS #include diff --git a/include/ruby/util.h b/include/ruby/util.h index ee8e726572..b025fb61ec 100644 --- a/include/ruby/util.h +++ b/include/ruby/util.h @@ -19,6 +19,11 @@ extern "C" { #endif #endif +#include "ruby/defines.h" +#ifdef RUBY_EXTCONF_H +#include RUBY_EXTCONF_H +#endif + #ifndef _ #ifdef __cplusplus # ifndef HAVE_PROTOTYPES -- cgit v1.2.3