Skip to content

Commit ed24de7

Browse files
authored
Try removing problematic wcsnlen function
This conflicts with the standard one already included through `wctype.h` in some POSIX OSes like Haiku.
1 parent c11ed1a commit ed24de7

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/coreclr/pal/inc/rt/safecrt.h

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,29 +1088,6 @@ errno_t __cdecl _wcsnset_s(WCHAR *_Dst, size_t _SizeInWords, WCHAR _Value, size_
10881088

10891089
#endif
10901090

1091-
/* wcsnlen */
1092-
extern
1093-
size_t __cdecl wcsnlen(const WCHAR *inString, size_t inMaxSize);
1094-
1095-
#if _SAFECRT_USE_INLINES || _SAFECRT_IMPL
1096-
1097-
_SAFECRT__INLINE
1098-
size_t __cdecl wcsnlen(const WCHAR *inString, size_t inMaxSize)
1099-
{
1100-
size_t n;
1101-
1102-
/* Note that we do not check if s == nullptr, because we do not
1103-
* return errno_t...
1104-
*/
1105-
1106-
for (n = 0; n < inMaxSize && *inString; n++, inString++)
1107-
;
1108-
1109-
return n;
1110-
}
1111-
1112-
#endif
1113-
11141091
/* _wmakepath_s */
11151092
_SAFECRT__EXTERN_C
11161093
errno_t __cdecl _wmakepath_s(WCHAR *_Dst, size_t _SizeInWords, const WCHAR *_Drive, const WCHAR *_Dir, const WCHAR *_Filename, const WCHAR *_Ext);

0 commit comments

Comments
 (0)