mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-01-05 09:03:28 +08:00
fix utlstring trying to override memdbg on Mac debug builds
This commit is contained in:
parent
8a7a0a5409
commit
2d52e7127e
@ -16,6 +16,8 @@
|
|||||||
#include "limits.h"
|
#include "limits.h"
|
||||||
|
|
||||||
#if defined( OSX )
|
#if defined( OSX )
|
||||||
|
|
||||||
|
#if !defined( wcsdup )
|
||||||
inline wchar_t *wcsdup(const wchar_t *pString)
|
inline wchar_t *wcsdup(const wchar_t *pString)
|
||||||
{
|
{
|
||||||
wchar_t *pMemory;
|
wchar_t *pMemory;
|
||||||
@ -31,6 +33,7 @@ inline wchar_t *wcsdup(const wchar_t *pString)
|
|||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline size_t strnlen(const char *s, size_t n)
|
inline size_t strnlen(const char *s, size_t n)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user