1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 19:41:05 +02:00

<alloca.h> needs to be included before we define macros calling alloca()

atleast using SGI's cc - should not harm other platforms (i hope)
This commit is contained in:
Thies C. Arntzen
2000-03-26 14:46:25 +00:00
parent 6a048bfd64
commit 7ec4e5e21b
2 changed files with 8 additions and 8 deletions

View File

@@ -83,12 +83,16 @@
# define ZEND_EXTENSIONS_SUPPORT 0
#endif
#if defined(HAVE_ALLOCA) && defined(HAVE_ALLOCA_H)
# include <alloca.h>
#endif
#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32))
# define do_alloca(p) alloca(p)
# define free_alloca(p)
# define do_alloca(p) alloca(p)
# define free_alloca(p)
#else
# define do_alloca(p) emalloc(p)
# define free_alloca(p) efree(p)
# define do_alloca(p) emalloc(p)
# define free_alloca(p) efree(p)
#endif
#if ZEND_DEBUG

View File

@@ -32,10 +32,6 @@
#include "zend_fast_cache.h"
#include "zend_execute_locks.h"
#if defined(HAVE_ALLOCA) && defined(HAVE_ALLOCA_H)
# include <alloca.h>
#endif
#define get_zval_ptr(node, Ts, should_free, type) _get_zval_ptr(node, Ts, should_free ELS_CC)
#define get_zval_ptr_ptr(node, Ts, type) _get_zval_ptr_ptr(node, Ts ELS_CC)