From: Richard Levitte Date: Mon, 27 Sep 2004 21:59:44 +0000 (+0000) Subject: Move the declaration of alloca() so it's ony declared when really X-Git-Tag: BEN_FIPS_TEST_6~14^2~67 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=c38ff58b6bdf78de3a029b19c902bfcc9e961f4c Move the declaration of alloca() so it's ony declared when really necessary. --- diff --git a/crypto/engine/eng_padlock.c b/crypto/engine/eng_padlock.c index 81884ef6bf..ca31165787 100644 --- a/crypto/engine/eng_padlock.c +++ b/crypto/engine/eng_padlock.c @@ -73,16 +73,6 @@ #include #include -#ifdef OPENSSL_SYS_VMS -# include -# define alloca __ALLOCA -#else -# include -# ifdef _MSC_VER -# define alloca _alloca -# endif -#endif - #ifndef OPENSSL_NO_HW #ifndef OPENSSL_NO_HW_PADLOCK @@ -126,6 +116,13 @@ void ENGINE_load_padlock (void) } #ifdef COMPILE_HW_PADLOCK +/* We do these includes here to avoid header problems on platforms that + do not have the VIA padlock anyway... */ +#include +#ifdef _MSC_VER +# define alloca _alloca +#endif + /* Function for ENGINE detection and control */ static int padlock_available(void); static int padlock_init(ENGINE *e);