diff --git a/stepmania/src/archutils/Darwin/wchar.cpp b/stepmania/src/archutils/Darwin/wchar.cpp index 413d2dc845..c99c8f40f0 100644 --- a/stepmania/src/archutils/Darwin/wchar.cpp +++ b/stepmania/src/archutils/Darwin/wchar.cpp @@ -1,69 +1,69 @@ #include #include +#include // This is very annoying. The 10.2.8 SDK uses GLIBCPP but the 10.4u SDK uses GLIBCXX #define _GLIB_CHECK(x) (_GLIBCPP_ ## x || _GLIBCXX_ ## x) -extern "C" -{ -#if ! _GLIB_CHECK(HAVE_WCLEN) +__BEGIN_DECLS +#if ! _GLIB_CHECK(HAVE_WCSLEN) size_t wcslen( const wchar_t *ws ) { - size_t n = 0; - - while( *(ws++) != L'\0' ) - ++n; - return n; + size_t n = 0; + + while( *(ws++) != L'\0' ) + ++n; + return n; } #endif #if ! _GLIB_CHECK(HAVE_WMEMCHR) wchar_t *wmemchr( const wchar_t *ws, wchar_t wc, size_t n ) { - for( unsigned i=0; i