From b2d8306857fb2193e96bdfe7545124e9f2f91012 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 28 Jul 2024 19:33:54 +0200 Subject: [PATCH] fix: add missing `PHPAPI` Issue introduced in commit https://github.com/php/php-src/commit/5905857fd2652585989ed03e5a5b0beea89ab18e from PR https://github.com/php/php-src/pull/14833 --- ext/standard/math.c | 2 +- ext/standard/php_math_round_mode.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/math.c b/ext/standard/math.c index 2d0c8fc09e9ed..142d473864f75 100644 --- a/ext/standard/math.c +++ b/ext/standard/math.c @@ -304,7 +304,7 @@ PHP_FUNCTION(floor) } /* }}} */ -int php_math_round_mode_from_enum(zend_object *mode) +PHPAPI int php_math_round_mode_from_enum(zend_object *mode) { zval *case_name = zend_enum_fetch_case_name(mode); zend_string *mode_name = Z_STR_P(case_name); diff --git a/ext/standard/php_math_round_mode.h b/ext/standard/php_math_round_mode.h index 11a8e8732049e..e8cbec6406681 100644 --- a/ext/standard/php_math_round_mode.h +++ b/ext/standard/php_math_round_mode.h @@ -52,4 +52,4 @@ extern PHPAPI zend_class_entry *rounding_mode_ce; -int php_math_round_mode_from_enum(zend_object *mode); +PHPAPI int php_math_round_mode_from_enum(zend_object *mode);