From 1b7f568562fa8a3a082be681ccf27ef84d2bf264 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 3 Jul 2005 18:48:47 -0700 Subject: [PATCH] [svn] Updated alloca declaration. --- src/ChangeLog | 5 +++++ src/config-post.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index dd5a6850..5ad8e2e2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-07-04 Hrvoje Niksic + + * config-post.h (alloca): Updated declaration to not enumerate all + Windows compilers. + 2005-07-04 Hrvoje Niksic * openssl.c (openssl_errstr): Separate error messages with "; ". diff --git a/src/config-post.h b/src/config-post.h index 5c93ddda..c22df038 100644 --- a/src/config-post.h +++ b/src/config-post.h @@ -56,8 +56,11 @@ #if HAVE_ALLOCA_H # include -#elif defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ +#elif defined WINDOWS # include +# ifndef alloca +# define alloca _alloca +# endif #elif defined __GNUC__ # define alloca __builtin_alloca #elif defined _AIX