summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-07 03:43:42 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-07 03:43:42 +0000
commitb6c7726af9360be623fb838279642bd9275ff142 (patch)
tree65963f9a87ff507ba517d9e39584e9c0fa0c8d95 /regex.c
parent7df15e398c457bbab97993c2e7a290c274c541d6 (diff)
downloadruby-b6c7726af9360be623fb838279642bd9275ff142.tar.gz
ruby-b6c7726af9360be623fb838279642bd9275ff142.tar.xz
ruby-b6c7726af9360be623fb838279642bd9275ff142.zip
* dln.c, eval.c, gc.c, regex.c, ruby.h: shut up AIX alloca
warning. [ruby-dev:29191] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/regex.c b/regex.c
index f2cd24906..ae0694b76 100644
--- a/regex.c
+++ b/regex.c
@@ -84,16 +84,19 @@ void rb_trap_exec _((void));
# endif
# endif /* atarist */
#else
-# if defined(HAVE_ALLOCA_H)
+# ifdef HAVE_ALLOCA_H
# include <alloca.h>
-# elif !defined(alloca)
-char *alloca();
-# endif
-#endif /* __GNUC__ */
+# else
+# ifdef _AIX
+ #pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+void *alloca ();
+# endif
+# endif /* AIX */
+# endif /* HAVE_ALLOCA_H */
-#ifdef _AIX
-#pragma alloca
-#endif
+#endif /* __GNUC__ */
#ifdef HAVE_STRING_H
# include <string.h>