Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
535:f79bbd1d0b27 | 536:0d2db7efa105 |
---|---|
312 // setup default target os to be build os | 312 // setup default target os to be build os |
313 #if _WIN32 | 313 #if _WIN32 |
314 global.params.os = OSWindows; | 314 global.params.os = OSWindows; |
315 #elif linux | 315 #elif linux |
316 global.params.os = OSLinux; | 316 global.params.os = OSLinux; |
317 #elif __APPLY__ | |
318 global.params.os = OSMacOSX; | |
317 #else | 319 #else |
318 #error | 320 #error |
319 #endif /* linux */ | 321 #endif /* linux */ |
320 | 322 |
321 //VersionCondition::addPredefinedGlobalIdent("D_Bits"); | 323 //VersionCondition::addPredefinedGlobalIdent("D_Bits"); |
747 VersionCondition::addPredefinedGlobalIdent("Win32"); | 749 VersionCondition::addPredefinedGlobalIdent("Win32"); |
748 VersionCondition::addPredefinedGlobalIdent("mingw32"); | 750 VersionCondition::addPredefinedGlobalIdent("mingw32"); |
749 global.params.tt_os = "-pc-mingw32"; | 751 global.params.tt_os = "-pc-mingw32"; |
750 break; | 752 break; |
751 | 753 |
752 case OSLinux: | 754 case OSLinux: |
753 VersionCondition::addPredefinedGlobalIdent("linux"); | 755 VersionCondition::addPredefinedGlobalIdent("linux"); |
754 VersionCondition::addPredefinedGlobalIdent("Posix"); | 756 VersionCondition::addPredefinedGlobalIdent("Posix"); |
755 global.params.tt_os = "-pc-linux-gnu"; | 757 global.params.tt_os = "-pc-linux-gnu"; |
756 break; | 758 break; |
759 | |
760 case OSMacOSX: | |
761 VersionCondition::addPredefinedGlobalIdent("darwin"); | |
762 global.params.tt_os = "-pc-darwin-gnu"; | |
757 | 763 |
758 default: | 764 default: |
759 assert(false && "Target OS not supported"); | 765 assert(false && "Target OS not supported"); |
760 } | 766 } |
761 | 767 |