Permalink
Browse files

Fix redefinition of alloca when compiling with MinGW-w64

  • Loading branch information...
1 parent 6df33f0 commit 1b4d3179667691aa20a2f226c0a2a2e275501c4a @pooler committed Jun 4, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 miner.h
View
@@ -20,15 +20,15 @@
#endif
#ifdef HAVE_ALLOCA_H
# include <alloca.h>
-#elif defined __GNUC__
-# define alloca __builtin_alloca
-#elif defined _AIX
-# define alloca __alloca
-#elif defined _MSC_VER
-# include <malloc.h>
-# 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 <malloc.h>
+# define alloca _alloca
+# elif !defined HAVE_ALLOCA
# ifdef __cplusplus
extern "C"
# endif

0 comments on commit 1b4d317

Please sign in to comment.