Skip to content

Commit 0e2ac30

Browse files
authored
Use ZEND_WIN32 instead of PHP_WIN32 (#7055)
1 parent b9f3f35 commit 0e2ac30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_fibers.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# include <valgrind/valgrind.h>
3434
#endif
3535

36-
#ifndef PHP_WIN32
36+
#ifndef ZEND_WIN32
3737
# include <unistd.h>
3838
# include <sys/mman.h>
3939
# include <limits.h>
@@ -117,7 +117,7 @@ static bool zend_fiber_stack_allocate(zend_fiber_stack *stack, size_t size)
117117
stack->size = (size + page_size - 1) / page_size * page_size;
118118
const size_t msize = stack->size + ZEND_FIBER_GUARD_PAGES * page_size;
119119

120-
#ifdef PHP_WIN32
120+
#ifdef ZEND_WIN32
121121
pointer = VirtualAlloc(0, msize, MEM_COMMIT, PAGE_READWRITE);
122122

123123
if (!pointer) {
@@ -171,7 +171,7 @@ static void zend_fiber_stack_free(zend_fiber_stack *stack)
171171

172172
void *pointer = (void *) ((uintptr_t) stack->pointer - ZEND_FIBER_GUARD_PAGES * page_size);
173173

174-
#ifdef PHP_WIN32
174+
#ifdef ZEND_WIN32
175175
VirtualFree(pointer, 0, MEM_RELEASE);
176176
#else
177177
munmap(pointer, stack->size + ZEND_FIBER_GUARD_PAGES * page_size);

0 commit comments

Comments
 (0)