diff options
author | Rui Hirokawa <hirokawa@php.net> | 2002-04-21 22:20:14 +0000 |
---|---|---|
committer | Rui Hirokawa <hirokawa@php.net> | 2002-04-21 22:20:14 +0000 |
commit | 222a2f4feff4d78f859a6d1551cb2c809bf9d1fa (patch) | |
tree | 7d905f4eb93bca23c17f8e5201e08db64b3ef4b4 /TSRM/tsrm_virtual_cwd.c | |
parent | aa9cf268db5ad766fbdc0384f9c33f4713791016 (diff) | |
download | php-git-222a2f4feff4d78f859a6d1551cb2c809bf9d1fa.tar.gz |
fixed problem when multibyte character is included in file path on Windows. If _MBCS is defined, _tcstok is defined as _mbstrtok which is multibyte enabled strtok. If _MBCS is not defined, _tcstok is defined as strtok.
Diffstat (limited to 'TSRM/tsrm_virtual_cwd.c')
-rw-r--r-- | TSRM/tsrm_virtual_cwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/TSRM/tsrm_virtual_cwd.c b/TSRM/tsrm_virtual_cwd.c index ae8efd93e4..9c1a5d2925 100644 --- a/TSRM/tsrm_virtual_cwd.c +++ b/TSRM/tsrm_virtual_cwd.c @@ -68,7 +68,8 @@ cwd_state main_cwd_state; /* True global */ #endif #ifdef TSRM_WIN32 -#define tsrm_strtok_r(a,b,c) strtok((a),(b)) +#include <tchar.h> +#define tsrm_strtok_r(a,b,c) _tcstok((a),(b)) #define TOKENIZER_STRING "/\\" static int php_check_dots(const char *element, int n) |