diff --git a/public/tier0/memdbgon.h b/public/tier0/memdbgon.h index fff3f470..73bd9272 100644 --- a/public/tier0/memdbgon.h +++ b/public/tier0/memdbgon.h @@ -33,7 +33,11 @@ #include #endif #include +#if defined __APPLE__ +#include +#else #include +#endif #include "commonmacros.h" #include "memalloc.h" diff --git a/public/tier1/utlstring.h b/public/tier1/utlstring.h index a57d069c..0542de17 100644 --- a/public/tier1/utlstring.h +++ b/public/tier1/utlstring.h @@ -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) {