summaryrefslogtreecommitdiff
path: root/missing/alloca.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-01 12:18:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-01 12:18:32 +0000
commit69fa2fe929c2e339d73c8d0dc05d0d9c1fb57f55 (patch)
tree3fd5c42916b5281d82fa6327bbd8a11466bea558 /missing/alloca.c
parent19c9ac249b4d43348993b9968efe163fee6d413a (diff)
* missing/alloca.c: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/alloca.c')
-rw-r--r--missing/alloca.c4
1 files changed, 4 insertions, 0 deletions
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