From 1b4d3179667691aa20a2f226c0a2a2e275501c4a Mon Sep 17 00:00:00 2001 From: pooler Date: Tue, 5 Jun 2012 00:02:36 +0200 Subject: [PATCH] Fix redefinition of alloca when compiling with MinGW-w64 --- miner.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/miner.h b/miner.h index 2d3c7d9..9adca62 100644 --- a/miner.h +++ b/miner.h @@ -20,15 +20,15 @@ #endif #ifdef HAVE_ALLOCA_H # include -#elif defined __GNUC__ -# define alloca __builtin_alloca -#elif defined _AIX -# define alloca __alloca -#elif defined _MSC_VER -# include -# define alloca _alloca -#else -# ifndef HAVE_ALLOCA +#elif !defined alloca +# ifdef __GNUC__ +# define alloca __builtin_alloca +# elif defined _AIX +# define alloca __alloca +# elif defined _MSC_VER +# include +# define alloca _alloca +# elif !defined HAVE_ALLOCA # ifdef __cplusplus extern "C" # endif