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.
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
#include <bits/c++config.h>
|
#include <bits/c++config.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
// This is very annoying. The 10.2.8 SDK uses GLIBCPP but the 10.4u SDK uses GLIBCXX
|
// 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)
|
#define _GLIB_CHECK(x) (_GLIBCPP_ ## x || _GLIBCXX_ ## x)
|
||||||
|
|
||||||
extern "C"
|
__BEGIN_DECLS
|
||||||
{
|
#if ! _GLIB_CHECK(HAVE_WCSLEN)
|
||||||
#if ! _GLIB_CHECK(HAVE_WCLEN)
|
|
||||||
size_t wcslen( const wchar_t *ws )
|
size_t wcslen( const wchar_t *ws )
|
||||||
{
|
{
|
||||||
size_t n = 0;
|
size_t n = 0;
|
||||||
@@ -60,10 +60,10 @@ wchar_t *wmemset( wchar_t *ws , wchar_t wc, size_t n )
|
|||||||
return ws;
|
return ws;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
__END_DECLS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (c) 2003-2005 Steve Checkoway
|
* (c) 2003-2006 Steve Checkoway
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
|||||||
Reference in New Issue
Block a user