Skip to content

Commit 0a19a04

Browse files
committed
Remove unused constants
- Check for pthread_attr_getstack defines HAVE_PTHREAD_ATTR_GETSTACK which is not used in the code. - ZEND_STACK_GROWS_DOWNWARDS is also not used in the code.
1 parent d58e3c0 commit 0a19a04

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Zend/Zend.m4

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ _LT_AC_TRY_DLOPEN_SELF([
146146
])
147147
148148
dnl Checks for library functions.
149-
AC_CHECK_FUNCS(getpid kill sigsetjmp pthread_getattr_np pthread_attr_get_np pthread_get_stackaddr_np pthread_attr_getstack pthread_stackseg_np gettid)
149+
AC_CHECK_FUNCS(getpid kill sigsetjmp pthread_getattr_np pthread_attr_get_np pthread_get_stackaddr_np pthread_stackseg_np gettid)
150150
151151
dnl Test whether the stack grows downwards
152152
dnl Assumes contiguous stack
@@ -169,7 +169,6 @@ int main(void) {
169169
return f((uintptr_t)&local) ? 0 : 1;
170170
}
171171
]])], [
172-
AC_DEFINE([ZEND_STACK_GROWS_DOWNWARDS], 1, [Define if the stack grows downwards])
173172
AC_DEFINE([ZEND_CHECK_STACK_LIMIT], 1, [Define if checking the stack limit is supported])
174173
AC_MSG_RESULT(yes)
175174
], [

win32/build/config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@ if (VS_TOOLSET && VCVERS >= 1914) {
303303

304304
AC_DEFINE('HAVE_STRNLEN', 1);
305305

306-
AC_DEFINE('ZEND_STACK_GROWS_DOWNWARDS', 1)
307306
AC_DEFINE('ZEND_CHECK_STACK_LIMIT', 1)
308307

309308
ADD_SOURCES("main/streams", "streams.c cast.c memory.c filter.c plain_wrapper.c \

0 commit comments

Comments
 (0)