summaryrefslogtreecommitdiff
path: root/Zend/zend.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-03-15 17:32:29 +0000
committerZeev Suraski <zeev@php.net>2000-03-15 17:32:29 +0000
commit15dd8e61a2467ef6ecd1c3032c1792e21b1ba178 (patch)
treebd9d4e1b22fce2224c1b87854550b5530f3dbabd /Zend/zend.h
parentee286febe78a19c7e4f825f033380c454123c0cd (diff)
downloadphp-git-15dd8e61a2467ef6ecd1c3032c1792e21b1ba178.tar.gz
- Fix newly introduced problem reported by Sam Ruby
Diffstat (limited to 'Zend/zend.h')
-rw-r--r--Zend/zend.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/zend.h b/Zend/zend.h
index aac08cc057..614d8614f7 100644
--- a/Zend/zend.h
+++ b/Zend/zend.h
@@ -74,6 +74,14 @@
# define ZEND_EXTENSIONS_SUPPORT 0
#endif
+#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32))
+# define do_alloca(p) alloca(p)
+# define free_alloca(p)
+#else
+# define do_alloca(p) emalloc(p)
+# define free_alloca(p) efree(p)
+#endif
+
#if ZEND_DEBUG
#define ZEND_FILE_LINE_D char *__zend_filename, uint __zend_lineno
#define ZEND_FILE_LINE_DC , ZEND_FILE_LINE_D