Skip to content

Commit

Permalink
Fix ZTS defination
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed Dec 13, 2023
1 parent d013e64 commit 8c67193
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions ext/include/swow_siritz.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include "swow.h"

#ifdef PHP_ZTS
#ifdef ZTS

/* globals */

Expand Down Expand Up @@ -41,6 +41,6 @@ zend_result swow_siritz_module_shutdown(INIT_FUNC_ARGS);
zend_result swow_siritz_runtime_init(INIT_FUNC_ARGS);
zend_result swow_siritz_runtime_shutdown(INIT_FUNC_ARGS);

#endif // PHP_ZTS
#endif // ZTS

#endif // _SWOW_SIRITZ_H
8 changes: 4 additions & 4 deletions ext/src/swow_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ PHP_MINIT_FUNCTION(swow)
swow_signal_module_init,
swow_watchdog_module_init,
swow_closure_module_init,
#ifdef PHP_ZTS
#ifdef ZTS
swow_siritz_module_init,
#endif
swow_ipaddress_init,
Expand Down Expand Up @@ -282,7 +282,7 @@ PHP_MSHUTDOWN_FUNCTION(swow)
#ifdef CAT_OS_WAIT
swow_proc_open_module_shutdown,
#endif
#ifdef PHP_ZTS
#ifdef ZTS
swow_siritz_module_shutdown,
#endif
swow_closure_module_shutdown,
Expand Down Expand Up @@ -332,7 +332,7 @@ PHP_RINIT_FUNCTION(swow)
swow_dns_runtime_init,
swow_stream_runtime_init,
swow_watchdog_runtime_init,
#ifdef PHP_ZTS
#ifdef ZTS
swow_siritz_runtime_init,
#endif
#ifdef CAT_OS_WAIT
Expand Down Expand Up @@ -376,7 +376,7 @@ PHP_RSHUTDOWN_FUNCTION(swow)
#ifdef CAT_OS_WAIT
swow_proc_open_runtime_shutdown,
#endif
#ifdef PHP_ZTS
#ifdef ZTS
swow_siritz_runtime_shutdown,
#endif
swow_watchdog_runtime_shutdown,
Expand Down
4 changes: 2 additions & 2 deletions ext/src/swow_siritz.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "swow_closure.h"
#include "swow_hook.h"

#ifdef PHP_ZTS
#ifdef ZTS

#if !defined(HAVE_PTHREAD_TIMEDJOIN_NP) && !defined(CAT_OS_WIN)
// from https://stackoverflow.com/a/11552244
Expand Down Expand Up @@ -471,4 +471,4 @@ zend_result swow_siritz_module_shutdown(INIT_FUNC_ARGS)
return SUCCESS;
}

#endif
#endif // ZTS

0 comments on commit 8c67193

Please sign in to comment.