]> granicus.if.org Git - php/commitdiff
fixed problem when multibyte character is included in file path on Windows. If _MBCS...
authorRui Hirokawa <hirokawa@php.net>
Sun, 21 Apr 2002 22:20:14 +0000 (22:20 +0000)
committerRui Hirokawa <hirokawa@php.net>
Sun, 21 Apr 2002 22:20:14 +0000 (22:20 +0000)
TSRM/tsrm_virtual_cwd.c

index ae8efd93e467eec14e6f89955d0af60ea8603361..9c1a5d29256dfd128073590ab426d89e05fdc86e 100644 (file)
@@ -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)