Fix linking for OS X 10.2.7 and 10.3.x
This commit is contained in:
@@ -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_
|
#define _BSD_WCHAR_T_DEFINED_
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#ifndef wcslen
|
#ifndef wcslen
|
||||||
size_t wcslen(const wchar_t *ws)
|
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
|
#ifndef wstring
|
||||||
template class std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >;
|
template class std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user