mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-23 01:44:43 +08:00
headers: Fix _tcstok and _wcstok_l macros in _UNICODE mode
Macro _tcstok takes two arguments, so in _UNICODE mode it has to expand to two-argument _wcstok() function, instead of to three-argument wcstok() function. Also in C mode (as opposite of C++ mode), function wcstok() cannot be called with just two arguments, so fix _wcstok_l macro to call _wcstok() function. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
bafccb49a0
commit
dcd7fefc70
@ -268,7 +268,7 @@ extern "C" {
|
||||
#define _tcsrchr wcsrchr
|
||||
#define _tcsspn wcsspn
|
||||
#define _tcsstr wcsstr
|
||||
#define _tcstok wcstok
|
||||
#define _tcstok _wcstok
|
||||
#define _tcstok_l _wcstok_l
|
||||
#define _tcserror _wcserror
|
||||
#define __tcserror __wcserror
|
||||
@ -477,7 +477,7 @@ extern "C" {
|
||||
#define _wcsspnp(_cpc1,_cpc2) (!_cpc1 ? NULL : ((*((_cpc1)+wcsspn(_cpc1,_cpc2))) ? ((_cpc1)+wcsspn(_cpc1,_cpc2)) : NULL))
|
||||
#define _wcsncpy_l(_Destination,_Source,_Count,_Locale) (wcsncpy(_Destination,_Source,_Count))
|
||||
#define _wcsncat_l(_Destination,_Source,_Count,_Locale) (wcsncat(_Destination,_Source,_Count))
|
||||
#define _wcstok_l(_String,_Delimiters,_Locale) (wcstok(_String,_Delimiters))
|
||||
#define _wcstok_l(_String,_Delimiters,_Locale) (_wcstok(_String,_Delimiters))
|
||||
#define _wcsnset_l(_Destination,_Value,_Count,_Locale) (_wcsnset(_Destination,_Value,_Count))
|
||||
#define _wcsset_l(_Destination,_Value,_Locale) (_wcsset(_Destination,_Value))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user