From 18ca13b08193178ace21177bd1e05be0dfe5af09 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 11 Dec 2008 02:11:09 +0000 Subject: * include/ruby/st.h (size_t): needs stddef.h or stdlib.h. [ruby-core:20339] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/st.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/st.h b/include/ruby/st.h index 84ef72b44..31bac7b1a 100644 --- a/include/ruby/st.h +++ b/include/ruby/st.h @@ -12,6 +12,19 @@ extern "C" { #endif #endif +#ifndef RUBY_LIB +#include "ruby/config.h" +#ifdef RUBY_EXTCONF_H +#include RUBY_EXTCONF_H +#endif +#endif + +#if defined STDC_HEADERS +#include +#elif defined HAVE_STDLIB_H +#include +#endif + #if SIZEOF_LONG == SIZEOF_VOIDP typedef unsigned long st_data_t; #elif SIZEOF_LONG_LONG == SIZEOF_VOIDP -- cgit