Mercurial > projects > ldc
diff dmd/mars.c @ 536:0d2db7efa105
Add isnan for __APPLE__ and darwin version ident for OSX.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 24 Aug 2008 16:59:08 +0200 |
parents | f79bbd1d0b27 |
children | 4b7925bc1605 |
line wrap: on
line diff
--- a/dmd/mars.c Sun Aug 24 16:54:06 2008 +0200 +++ b/dmd/mars.c Sun Aug 24 16:59:08 2008 +0200 @@ -314,6 +314,8 @@ global.params.os = OSWindows; #elif linux global.params.os = OSLinux; +#elif __APPLY__ + global.params.os = OSMacOSX; #else #error #endif /* linux */ @@ -749,12 +751,16 @@ global.params.tt_os = "-pc-mingw32"; break; - case OSLinux: + case OSLinux: VersionCondition::addPredefinedGlobalIdent("linux"); VersionCondition::addPredefinedGlobalIdent("Posix"); global.params.tt_os = "-pc-linux-gnu"; break; + case OSMacOSX: + VersionCondition::addPredefinedGlobalIdent("darwin"); + global.params.tt_os = "-pc-darwin-gnu"; + default: assert(false && "Target OS not supported"); }