Skip to content

Commit 4d38315

Browse files
committed
fix windows build attempt
1 parent c2cc7d3 commit 4d38315

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ext/intl/converter/converter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ static zend_object *php_converter_clone_object(zend_object *object) {
968968
/* }}} */
969969

970970
/* {{{ php_converter_minit */
971-
int php_converter_minit(INIT_FUNC_ARGS) {
971+
U_CFUNC int php_converter_minit(INIT_FUNC_ARGS) {
972972
php_converter_ce = register_class_UConverter();
973973
php_converter_ce->create_object = php_converter_create_object;
974974
php_converter_ce->default_object_handlers = &php_converter_object_handlers;

ext/intl/converter/converter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121

2222
#include "php.h"
2323

24-
int php_converter_minit(INIT_FUNC_ARGS);
24+
U_CFUNC int php_converter_minit(INIT_FUNC_ARGS);
2525

2626
#endif /* PHP_INTL_CONVERTER_H */

ext/intl/php_intl.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,12 @@ zend_module_entry intl_module_entry = {
156156
/* }}} */
157157

158158
#ifdef COMPILE_DL_INTL
159+
BEGIN_EXTERN_C()
159160
#ifdef ZTS
160-
ZEND_TSRMLS_CACHE_DEFINE()
161+
ZEND_TSRMLS_CACHE_DEFINE()
161162
#endif
162-
ZEND_GET_MODULE( intl )
163+
ZEND_GET_MODULE( intl )
164+
END_EXTERN_C()
163165
#endif
164166

165167
/* {{{ intl_init_globals */

0 commit comments

Comments
 (0)