From 66e71ef963a18547d0c213ef5512efc6923185f2 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 10 Dec 2018 14:02:57 +0100 Subject: [PATCH] Added missing define for _wcsnlen for windows. --- winpr/include/winpr/string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winpr/include/winpr/string.h b/winpr/include/winpr/string.h index 166d800..d3cd29d 100644 --- a/winpr/include/winpr/string.h +++ b/winpr/include/winpr/string.h @@ -58,7 +58,7 @@ WINPR_API int _strnicmp(const char* string1, const char* string2, size_t count); WINPR_API int _wcscmp(const WCHAR* string1, const WCHAR* string2); WINPR_API size_t _wcslen(const WCHAR* str); -WINPR_API size_t _wcsnlen(const WCHAR* str, size_t numberOfElements); +WINPR_API size_t _wcsnlen(const WCHAR* str, size_t maxNumberOfElements); WINPR_API WCHAR* _wcschr(const WCHAR* str, WCHAR c); WINPR_API WCHAR* _wcsrchr(const WCHAR* str, WCHAR c); @@ -72,6 +72,7 @@ WINPR_API WCHAR* wcstok_s(WCHAR* strToken, const WCHAR* strDelimit, #define _wcscmp wcscmp #define _wcslen wcslen +#define _wcsnlen wcsnlen #define _wcschr wcschr #define _wcsrchr wcsrchr -- 2.7.4