Mercurial > projects > ldc
comparison gen/main.cpp @ 1387:5855958073a9
Added new FreeBSD and Solaris predefined version identifiers.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sun, 17 May 2009 17:10:26 +0200 |
parents | 229e02867307 |
children | c5a92bee639d |
comparison
equal
deleted
inserted
replaced
1386:402bffb1b356 | 1387:5855958073a9 |
---|---|
539 // freebsd | 539 // freebsd |
540 else if (triple.find("-freebsd") != npos) | 540 else if (triple.find("-freebsd") != npos) |
541 { | 541 { |
542 global.params.os = OSFreeBSD; | 542 global.params.os = OSFreeBSD; |
543 VersionCondition::addPredefinedGlobalIdent("freebsd"); | 543 VersionCondition::addPredefinedGlobalIdent("freebsd"); |
544 VersionCondition::addPredefinedGlobalIdent("FreeBSD"); | |
544 VersionCondition::addPredefinedGlobalIdent("Posix"); | 545 VersionCondition::addPredefinedGlobalIdent("Posix"); |
545 } | 546 } |
546 // solaris | 547 // solaris |
547 else if (triple.find("-solaris") != npos) | 548 else if (triple.find("-solaris") != npos) |
548 { | 549 { |
549 global.params.os = OSSolaris; | 550 global.params.os = OSSolaris; |
550 VersionCondition::addPredefinedGlobalIdent("solaris"); | 551 VersionCondition::addPredefinedGlobalIdent("solaris"); |
552 VersionCondition::addPredefinedGlobalIdent("Solaris"); | |
551 VersionCondition::addPredefinedGlobalIdent("Posix"); | 553 VersionCondition::addPredefinedGlobalIdent("Posix"); |
552 } | 554 } |
553 // unsupported | 555 // unsupported |
554 else | 556 else |
555 { | 557 { |