Commit ee4d0c01 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Fix alloca detection.

parent a6dff0b1
......@@ -18,12 +18,14 @@
#include <string.h>
/* Includes for alloca() */
#if defined(__GNUC__) && !defined(alloca)
#define alloca(x) __builtin_alloca(x)
#elif defined(__WIN32)
#include <malloc.h>
#else
#error do not know how to get alloca
#ifndef alloca
# if defined(__GNUC__)
# define alloca(x) __builtin_alloca(x)
# elif defined(__WIN32)
# include <malloc.h>
# else
# error do not know how to get alloca
# endif
#endif
#include "../begin.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment