Skip to content

Commit 1af023e

Browse files
committed
Drop new windows specific code
1 parent a34e543 commit 1af023e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Zend/zend_portability.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -357,18 +357,6 @@ char *alloca();
357357
do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap)
358358
# define free_alloca(p, use_heap) \
359359
do { if (UNEXPECTED(use_heap)) efree(p); } while (0)
360-
#elif defined(PHP_WIN32)
361-
# define ZEND_ALLOCA_MAX_SIZE (32 * 1024)
362-
# define ALLOCA_FLAG(name) \
363-
bool name;
364-
# define SET_ALLOCA_FLAG(name) \
365-
name = true
366-
# define do_alloca_ex(size, limit, use_heap) \
367-
((use_heap = (UNEXPECTED((size) > (limit)))) ? emalloc(size) : _malloca(size))
368-
# define do_alloca(size, use_heap) \
369-
do_alloca_ex(size, ZEND_ALLOCA_MAX_SIZE, use_heap)
370-
# define free_alloca(p, use_heap) \
371-
do { if (UNEXPECTED(use_heap)) { efree(p); } else { _freea(p); } } while (0)
372360
#else
373361
# define ALLOCA_FLAG(name)
374362
# define SET_ALLOCA_FLAG(name)

0 commit comments

Comments
 (0)