# HG changeset patch # User Tomas Lindquist Olsen # Date 1242573026 -7200 # Node ID 5855958073a92a29b088fb08e354e95a8fbae75f # Parent 402bffb1b356f6701ad2d9b358936d2849847b7f Added new FreeBSD and Solaris predefined version identifiers. diff -r 402bffb1b356 -r 5855958073a9 dmd/cond.c --- a/dmd/cond.c Sun May 17 17:04:47 2009 +0200 +++ b/dmd/cond.c Sun May 17 17:10:26 2009 +0200 @@ -145,7 +145,7 @@ // LDC "LLVM", "LDC", "LLVM64", "PPC", "PPC64", - "darwin", + "darwin","solaris","freebsd" }; for (unsigned i = 0; i < sizeof(reserved) / sizeof(reserved[0]); i++) diff -r 402bffb1b356 -r 5855958073a9 gen/main.cpp --- a/gen/main.cpp Sun May 17 17:04:47 2009 +0200 +++ b/gen/main.cpp Sun May 17 17:10:26 2009 +0200 @@ -541,6 +541,7 @@ { global.params.os = OSFreeBSD; VersionCondition::addPredefinedGlobalIdent("freebsd"); + VersionCondition::addPredefinedGlobalIdent("FreeBSD"); VersionCondition::addPredefinedGlobalIdent("Posix"); } // solaris @@ -548,6 +549,7 @@ { global.params.os = OSSolaris; VersionCondition::addPredefinedGlobalIdent("solaris"); + VersionCondition::addPredefinedGlobalIdent("Solaris"); VersionCondition::addPredefinedGlobalIdent("Posix"); } // unsupported