From 34b0f569e1aabfda6f8f1af219b65980b874f7bf Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 22 Jun 2009 18:41:13 +0000 Subject: [PATCH] fix shared build on Windows --- ext/json/json.c | 4 ++-- ext/json/php_json.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/json/json.c b/ext/json/json.c index c261167df3..8ee5cb5d4a 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -341,7 +341,7 @@ static void json_escape_string(smart_str *buf, char *s, int len TSRMLS_DC) /* {{ } /* }}} */ -PHPAPI void php_json_encode(smart_str *buf, zval *val TSRMLS_DC) /* {{{ */ +PHP_JSON_API void php_json_encode(smart_str *buf, zval *val TSRMLS_DC) /* {{{ */ { switch (Z_TYPE_P(val)) { case IS_NULL: @@ -393,7 +393,7 @@ PHPAPI void php_json_encode(smart_str *buf, zval *val TSRMLS_DC) /* {{{ */ } /* }}} */ -PHPAPI void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc TSRMLS_DC) /* {{{ */ +PHP_JSON_API void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc TSRMLS_DC) /* {{{ */ { unsigned short *utf16; int utf16_len; diff --git a/ext/json/php_json.h b/ext/json/php_json.h index c022be7e58..ba185f085e 100644 --- a/ext/json/php_json.h +++ b/ext/json/php_json.h @@ -44,8 +44,8 @@ extern zend_module_entry json_module_entry; #define JSON_G(v) (json_globals.v) #endif -PHPAPI void php_json_encode(smart_str *buf, zval *val TSRMLS_DC); -PHPAPI void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc TSRMLS_DC); +PHP_JSON_API void php_json_encode(smart_str *buf, zval *val TSRMLS_DC); +PHP_JSON_API void php_json_decode(zval *return_value, char *buf, int buf_len, zend_bool assoc TSRMLS_DC); #endif /* PHP_JSON_H */ -- 2.40.0