diff --git a/Source/tchar.h b/Source/tchar.h index 32667cf0..e4a74b97 100644 --- a/Source/tchar.h +++ b/Source/tchar.h @@ -75,7 +75,7 @@ typedef wchar_t TCHAR, _TUCHAR; #define _tcscpy wcscpy #define _tcsdup _wcsdup #define _tcslen wcslen -#define _tcsrchr wcsrchr +#define _tcsrchr(s,c) ( wcsrchr((wchar_t*)(s), (c)) ) // bug #1085: If is included the compiler has problems picking the correct overloaded function #define _tcsstr wcsstr #define _tcstok wcstok