changeset 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 402bffb1b356
children 5a54b39af6d6
files dmd/cond.c gen/main.cpp
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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++)
--- 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