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

ruby-changes:23154

From: nobu <ko1@a...>
Date: Sun, 1 Apr 2012 21:18:43 +0900 (JST)
Subject: [ruby-changes:23154] nobu:r35204 (trunk): * missing/alloca.c: suppress warnings.

nobu	2012-04-01 21:18:32 +0900 (Sun, 01 Apr 2012)

  New Revision: 35204

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

  Log:
    * missing/alloca.c: suppress warnings.

  Modified files:
    trunk/missing/alloca.c

Index: missing/alloca.c
===================================================================
--- missing/alloca.c	(revision 35203)
+++ missing/alloca.c	(revision 35204)
@@ -30,6 +30,8 @@
 #endif
 
 #include "ruby/config.h"
+#define X3J11 1		   /* config.h should contain void if neede */
+
 #ifdef C_ALLOCA
 
 #ifdef emacs
@@ -52,7 +54,9 @@
 typedef char	*pointer;		/* generic pointer type */
 #endif /* X3J11 */
 
+#ifndef NULL
 #define	NULL	0			/* null pointer constant */
+#endif
 
 #ifdef RUBY_LIB_PREFIX
 #define xmalloc ruby_xmalloc

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

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