diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-07 03:37:47 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-08-07 03:37:47 +0000 |
commit | 275f12623df02daf3ee121da50997b224cfa593a (patch) | |
tree | aef4bfbf3862be579422d81d9e6e204d0e647e8e | |
parent | 2104a366f6c6796d08834e5946aeeee976244066 (diff) |
* dln.c, eval.c, gc.c, ruby.h: shut up AIX alloca warning.
[ruby-dev:29191]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dln.c | 4 | ||||
-rw-r--r-- | eval.c | 4 | ||||
-rw-r--r-- | gc.c | 4 | ||||
-rw-r--r-- | ruby.h | 6 |
5 files changed, 10 insertions, 13 deletions
@@ -1,3 +1,8 @@ +Mon Aug 7 12:05:28 2006 Yukihiro Matsumoto <[email protected]> + + * dln.c, eval.c, gc.c, ruby.h: shut up AIX alloca warning. + [ruby-dev:29191] + Sun Aug 6 20:34:24 2006 Tadayoshi Funaba <[email protected]> * lib/date/format.rb (str[fp]time): %[EO]U didn't denote %U. @@ -27,10 +27,6 @@ char *dln_argv0; #endif -#ifdef _AIX -#pragma alloca -#endif - #if defined(HAVE_ALLOCA_H) #include <alloca.h> #endif @@ -53,9 +53,7 @@ # ifdef HAVE_ALLOCA_H # include <alloca.h> # else -# ifdef _AIX - #pragma alloca -# else +# ifndef _AIX # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (); # endif @@ -51,9 +51,7 @@ int rb_io_fptr_finalize(struct OpenFile*); # ifdef HAVE_ALLOCA_H # include <alloca.h> # else -# ifdef _AIX - #pragma alloca -# else +# ifndef _AIX # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (); # endif @@ -79,10 +79,10 @@ extern "C" { #if defined(HAVE_ALLOCA_H) #include <alloca.h> -#endif - -#ifdef _AIX +#else +# ifdef _AIX #pragma alloca +# endif #endif #if defined(__VMS) |