diff --git a/stepmania/src/archutils/Darwin/wchar.cpp b/stepmania/src/archutils/Darwin/wchar.cpp index 52bf791d3a..034c0d1f59 100644 --- a/stepmania/src/archutils/Darwin/wchar.cpp +++ b/stepmania/src/archutils/Darwin/wchar.cpp @@ -7,12 +7,15 @@ * */ +#include + +#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3) + #define _BSD_WCHAR_T_DEFINED_ #include #include #include - 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, std::allocator >; #endif + +#endif