summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-25 19:37:49 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-25 19:37:49 +0000
commit1139968b1d77131a280a5dbbc8891ebced136a74 (patch)
treeb2671269856807f8c6b756a98d6b6e5daacaa3f9 /gc.c
parentfc153153ce103bd5789b47024897320f4d23e3c6 (diff)
* eval.c, gc.c: use a common set of alloca() #ifdef's. This fixes
the build with Intel C Compiler for Linux. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/gc.c b/gc.c
index 9801a19adb..3defaab7c7 100644
--- a/gc.c
+++ b/gc.c
@@ -36,17 +36,19 @@ void rb_io_fptr_finalize _((struct OpenFile*));
# endif
# endif /* atarist */
#else
-# if defined(HAVE_ALLOCA_H)
+# ifdef HAVE_ALLOCA_H
# include <alloca.h>
-# elif !defined(alloca)
-void *alloca();
-# endif
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+void *alloca ();
+# endif
+# endif /* AIX */
+# endif /* HAVE_ALLOCA_H */
#endif /* __GNUC__ */
-#ifdef _AIX
-#pragma alloca
-#endif
-
static void run_final();
#ifndef GC_MALLOC_LIMIT