1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* include/ruby/missing.h: don't use HAVE_STDDEF_H because it never

defined by configure though configure.bat defines it.

* include/ruby/ruby.h: move include stddef.h to defines.h

* include/ruby/defines.h: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-02-03 07:37:22 +00:00
parent 742d6ffb55
commit a3b4b499a5
4 changed files with 14 additions and 9 deletions

View file

@ -1,3 +1,12 @@
Thu Feb 3 16:31:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/missing.h: don't use HAVE_STDDEF_H because it never
defined by configure though configure.bat defines it.
* include/ruby/ruby.h: move include stddef.h to defines.h
* include/ruby/defines.h: ditto.
Wed Feb 2 20:25:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
* include/ruby/encoding.h (rb_enc_step_back): cast 4th argument 'n'

View file

@ -24,7 +24,10 @@ extern "C" {
#define RUBY
#include <stdlib.h>
# include <stddef.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef __cplusplus
# ifndef HAVE_PROTOTYPES
# define HAVE_PROTOTYPES 1

View file

@ -19,9 +19,7 @@ extern "C" {
#endif
#include "ruby/config.h"
#if defined(HAVE_STDDEF_H)
# include <stddef.h>
#endif
#include <stddef.h>
#ifdef RUBY_EXTCONF_H
#include RUBY_EXTCONF_H
#endif

View file

@ -44,10 +44,6 @@ extern "C" {
#define PRINTF_ARGS(decl, string_index, first_to_check) decl
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#ifdef HAVE_STRING_H
# include <string.h>
#else
@ -66,7 +62,6 @@ extern "C" {
#endif
#include <stdarg.h>
#include <stddef.h>
#include <stdio.h>
#include "defines.h"