Use __forceinline for wcsnlen_s implementation.

This commit is contained in:
Jacek Caban 2014-08-21 14:23:50 +02:00
parent 19b7bca334
commit a5d3ef6868
2 changed files with 2 additions and 2 deletions

View File

@ -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 _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); _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; return _src ? wcsnlen(_src, _count) : 0;
} }
#endif #endif

View File

@ -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 _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); _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; return _src ? wcsnlen(_src, _count) : 0;
} }
#endif #endif