Fix redefinition of alloca when compiling with MinGW-w64

This commit is contained in:
pooler 2012-06-05 00:02:36 +02:00
parent 6df33f0685
commit 1b4d317966

18
miner.h
View file

@ -20,15 +20,15 @@
#endif #endif
#ifdef HAVE_ALLOCA_H #ifdef HAVE_ALLOCA_H
# include <alloca.h> # include <alloca.h>
#elif defined __GNUC__ #elif !defined alloca
# define alloca __builtin_alloca # ifdef __GNUC__
#elif defined _AIX # define alloca __builtin_alloca
# define alloca __alloca # elif defined _AIX
#elif defined _MSC_VER # define alloca __alloca
# include <malloc.h> # elif defined _MSC_VER
# define alloca _alloca # include <malloc.h>
#else # define alloca _alloca
# ifndef HAVE_ALLOCA # elif !defined HAVE_ALLOCA
# ifdef __cplusplus # ifdef __cplusplus
extern "C" extern "C"
# endif # endif