Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if it's available

This commit is contained in:
Christian Heimes 2013-06-18 13:22:17 +02:00
parent 5678539500
commit f0400baba8
4 changed files with 8 additions and 2 deletions

View file

@ -70,7 +70,10 @@
#include <ffi.h>
#include "ctypes.h"
#ifdef HAVE_ALLOCA_H
/* AIX needs alloca.h for alloca() */
#include <alloca.h>
#endif
#if defined(_DEBUG) || defined(__MINGW32__)
/* Don't use structured exception handling on Windows if this is defined.