From b4a2e38f1104f2f67064eb98f011778db2522a8c Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 15 Jan 2006 13:01:30 +0000 Subject: [PATCH] Cleanup spacing, fix check HAVE_WCSLEN, and use __BEGIN_DECL and __END_DECL to keep Xcode from wanting to indent all of the functions another level. --- stepmania/src/archutils/Darwin/wchar.cpp | 48 ++++++++++++------------ 1 file changed, 24 insertions(+), 24 deletions(-) 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