Fix linking for OS X 10.2.7 and 10.3.x

This commit is contained in:
Steve Checkoway
2004-02-28 10:57:42 +00:00
parent aaf596bad3
commit d5c1d315db
+6 -1
View File
@@ -7,12 +7,15 @@
*
*/
#include <AvailabilityMacros.h>
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3)
#define _BSD_WCHAR_T_DEFINED_
#include <stddef.h>
#include <string>
#include <cstring>
extern "C" {
#ifndef wcslen
size_t wcslen(const wchar_t *ws)
@@ -73,3 +76,5 @@ wchar_t *wmemset(wchar_t *ws , wchar_t wc, size_t n)
#ifndef wstring
template class std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >;
#endif
#endif