[pypy-commit] cffi default: Issue #144: copy the "#if...#include <alloca.h>" done in _cffi_backend.c.
arigo
noreply at buildbot.pypy.org
Fri Apr 4 17:26:28 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r1498:41b3ef920695
Date: 2014-04-04 17:26 +0200
http://bitbucket.org/cffi/cffi/changeset/41b3ef920695/
Log: Issue #144: copy the "#if...#include <alloca.h>" done in
_cffi_backend.c.
diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py
--- a/cffi/vengine_cpy.py
+++ b/cffi/vengine_cpy.py
@@ -776,6 +776,10 @@
typedef unsigned __int32 uint32_t;
typedef unsigned __int64 uint64_t;
typedef unsigned char _Bool;
+#else
+#if (defined (__SVR4) && defined (__sun)) || defined(_AIX)
+# include <alloca.h>
+#endif
#endif
#if PY_MAJOR_VERSION < 3
More information about the pypy-commit
mailing list