[sldev] Is there a token for specific MacOS 10 releases
Lillian Yiyuan
lillie.yiyuan at gmail.com
Wed Nov 4 08:56:33 PST 2009
I see an LL_DARWIN, is there one for specific releases?
I am adding specific to intel OSX things, and want to have them only
be in Intel builds, for example Leopard and Snow Leopard are Intel
only. Second there are places where there are checks for old (pre
10.4). I'd like to know if there are tokens for this, so that I can do
things like this
#ifdef LL_DARWIN_10_3
#define LOCALE_BROKEN
#endif
char LLResMgr::getThousandsSeparator() const
{
char separator =
#if LL_LOCALE_BROKEN
// On the Mac, locale support is broken before 10.4, which causes
things to go all pear-shaped.
if(separator == 0)
{
return ',';
}
#endif
return localeconv()->thousands_sep[0];
}
This way old checking code will not be inflicted on people unless needed.
More information about the SLDev
mailing list