diff options
author | Anatol Belski <ab@php.net> | 2015-05-18 18:29:59 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-05-18 22:37:19 +0200 |
commit | 0f766a28cb7baedfe5ab6f6f42dba4a35286772f (patch) | |
tree | c4b6e804eee024f1044c2b37a400c45d56a1518a /ext/standard/php_string.h | |
parent | fb8891d9fc670fbe1930a5cfbccab0dfe241b603 (diff) | |
download | php-git-0f766a28cb7baedfe5ab6f6f42dba4a35286772f.tar.gz |
fix mbrlen prototype availability
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r-- | ext/standard/php_string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index a02658dc63..b5cf8f3051 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -154,6 +154,9 @@ PHPAPI char *php_strerror(int errnum); # define php_mblen(ptr, len) 1 # define php_mb_reset() #elif defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T) +# ifdef PHP_WIN32 +# include <wchar.h> +# endif # define php_mblen(ptr, len) ((int) mbrlen(ptr, len, &BG(mblen_state))) # define php_mb_reset() memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))) #else |