From a5d3ef6868b3fe9a18429b786002554a5516aec3 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 21 Aug 2014 14:23:50 +0200 Subject: [PATCH] Use __forceinline for wcsnlen_s implementation. --- mingw-w64-headers/crt/sec_api/string_s.h | 2 +- mingw-w64-headers/crt/sec_api/wchar_s.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mingw-w64-headers/crt/sec_api/string_s.h b/mingw-w64-headers/crt/sec_api/string_s.h index 40eebf62f..1eac92ea1 100644 --- a/mingw-w64-headers/crt/sec_api/string_s.h +++ b/mingw-w64-headers/crt/sec_api/string_s.h @@ -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 diff --git a/mingw-w64-headers/crt/sec_api/wchar_s.h b/mingw-w64-headers/crt/sec_api/wchar_s.h index 611f93471..42dd4aee3 100644 --- a/mingw-w64-headers/crt/sec_api/wchar_s.h +++ b/mingw-w64-headers/crt/sec_api/wchar_s.h @@ -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