Fix redefinition of alloca when compiling with MinGW-w64
This commit is contained in:
parent
6df33f0685
commit
1b4d317966
1 changed files with 9 additions and 9 deletions
6
miner.h
6
miner.h
|
@ -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
|
||||||
|
# ifdef __GNUC__
|
||||||
# define alloca __builtin_alloca
|
# define alloca __builtin_alloca
|
||||||
# elif defined _AIX
|
# elif defined _AIX
|
||||||
# define alloca __alloca
|
# define alloca __alloca
|
||||||
# elif defined _MSC_VER
|
# elif defined _MSC_VER
|
||||||
# include <malloc.h>
|
# include <malloc.h>
|
||||||
# define alloca _alloca
|
# define alloca _alloca
|
||||||
#else
|
# elif !defined HAVE_ALLOCA
|
||||||
# ifndef HAVE_ALLOCA
|
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in a new issue