From 69fa2fe929c2e339d73c8d0dc05d0d9c1fb57f55 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 1 Apr 2012 12:18:32 +0000 Subject: * missing/alloca.c: suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- missing/alloca.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/missing/alloca.c b/missing/alloca.c index efc1a77dff..1607ecc6d9 100644 --- a/missing/alloca.c +++ b/missing/alloca.c @@ -30,6 +30,8 @@ static char SCCSid[] = "@(#)alloca.c 1.1"; /* for the "what" utility */ #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 void *pointer; /* generic pointer type */ 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 -- cgit v1.2.3