Fix building against the OS X 10.8 SDK.

This is a backport of DMD commit 47bee50a39 by Justin Holewinski.

GitHub: Fixes #218.
This commit is contained in:
David Nadlinger
2012-11-17 22:24:22 +01:00
parent a2089e8c55
commit 60ebf5b968
3 changed files with 18 additions and 20 deletions

View File

@@ -379,7 +379,11 @@ PortInitializer::PortInitializer()
int Port::isNan(double r)
{
#if __APPLE__
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
return __inline_isnand(r);
#else
return __inline_isnan(r);
#endif
#elif defined __HAIKU__ || __OpenBSD__
return isnan(r);
#else
@@ -391,7 +395,11 @@ int Port::isNan(double r)
int Port::isNan(longdouble r)
{
#if __APPLE__
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 1080
return __inline_isnanl(r);
#else
return __inline_isnan(r);
#endif
#elif defined __HAIKU__ || __OpenBSD__
return isnan(r);
#else