mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
fix mbrlen prototype availability
This commit is contained in:
parent
fb8891d9fc
commit
0f766a28cb
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue