[前][次][番号順一覧][スレッド一覧]

ruby-changes:18743

From: naruse <ko1@a...>
Date: Thu, 3 Feb 2011 16:37:37 +0900 (JST)
Subject: [ruby-changes:18743] Ruby:r30770 (trunk): * include/ruby/missing.h: don't use HAVE_STDDEF_H because it never

naruse	2011-02-03 16:37:22 +0900 (Thu, 03 Feb 2011)

  New Revision: 30770

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30770

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/defines.h
    trunk/include/ruby/missing.h
    trunk/include/ruby/ruby.h

Index: include/ruby/missing.h
===================================================================
--- include/ruby/missing.h	(revision 30769)
+++ include/ruby/missing.h	(revision 30770)
@@ -19,9 +19,7 @@
 #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
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 30769)
+++ include/ruby/defines.h	(revision 30770)
@@ -24,7 +24,10 @@
 
 #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
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 30769)
+++ include/ruby/ruby.h	(revision 30770)
@@ -44,10 +44,6 @@
 #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 @@
 #endif
 
 #include <stdarg.h>
-#include <stddef.h>
 #include <stdio.h>
 
 #include "defines.h"
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 30769)
+++ ChangeLog	(revision 30770)
@@ -1,3 +1,12 @@
+Thu Feb  3 16:31:43 2011  NARUSE, Yui  <naruse@r...>
+
+	* 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@r...>
 
 	* include/ruby/encoding.h (rb_enc_step_back): cast 4th argument 'n'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]