mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 03:43:37 +08:00
Use __forceinline for wcsnlen_s implementation.
This commit is contained in:
parent
19b7bca334
commit
a5d3ef6868
@ -60,7 +60,7 @@ extern "C" {
|
||||
_CRTIMP errno_t __cdecl _wcsset_s_l(wchar_t *_Str,size_t _SizeInChars,unsigned int _Val,_locale_t _Locale);
|
||||
_CRTIMP errno_t __cdecl _wcsnset_s_l(wchar_t *_Str,size_t _SizeInChars,unsigned int _Val, size_t _Count,_locale_t _Locale);
|
||||
|
||||
extern inline size_t __cdecl wcsnlen_s(const wchar_t * _src, size_t _count) {
|
||||
__forceinline size_t __cdecl wcsnlen_s(const wchar_t * _src, size_t _count) {
|
||||
return _src ? wcsnlen(_src, _count) : 0;
|
||||
}
|
||||
#endif
|
||||
|
@ -130,7 +130,7 @@ extern "C" {
|
||||
_CRTIMP errno_t __cdecl _wcsset_s_l(wchar_t *_Str,size_t _SizeInChars,unsigned int _Val,_locale_t _Locale);
|
||||
_CRTIMP errno_t __cdecl _wcsnset_s_l(wchar_t *_Str,size_t _SizeInChars,unsigned int _Val, size_t _Count,_locale_t _Locale);
|
||||
|
||||
extern inline size_t __cdecl wcsnlen_s(const wchar_t * _src, size_t _count) {
|
||||
__forceinline size_t __cdecl wcsnlen_s(const wchar_t * _src, size_t _count) {
|
||||
return _src ? wcsnlen(_src, _count) : 0;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user