]> granicus.if.org Git - php/commitdiff
fix shared build on Windows
authorStanislav Malyshev <stas@php.net>
Mon, 22 Jun 2009 18:41:13 +0000 (18:41 +0000)
committerStanislav Malyshev <stas@php.net>
Mon, 22 Jun 2009 18:41:13 +0000 (18:41 +0000)
ext/json/json.c
ext/json/php_json.h

index c261167df32a7767b2c5e1843a9bf325bb156386..8ee5cb5d4a37ed952f6e9dafe29786444335783b 100644 (file)
@@ -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;
index c022be7e58d9a1ce40f4ef71066a57b79d36cf37..ba185f085e38b0e2538678745fed943abb89635d 100644 (file)
@@ -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 */