1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-03 08:03:22 +08:00

fix utlstring trying to override memdbg on Mac debug builds

This commit is contained in:
Maksim Smolin 2019-01-22 16:59:27 -08:00
parent 8a7a0a5409
commit 2d52e7127e

View File

@ -16,6 +16,8 @@
#include "limits.h"
#if defined( OSX )
#if !defined( wcsdup )
inline wchar_t *wcsdup(const wchar_t *pString)
{
wchar_t *pMemory;
@ -31,6 +33,7 @@ inline wchar_t *wcsdup(const wchar_t *pString)
return NULL;
}
#endif
inline size_t strnlen(const char *s, size_t n)
{