mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Added new FreeBSD and Solaris predefined version identifiers.
This commit is contained in:
@@ -145,7 +145,7 @@ void VersionCondition::checkPredefined(Loc loc, const char *ident)
|
||||
// LDC
|
||||
"LLVM", "LDC", "LLVM64",
|
||||
"PPC", "PPC64",
|
||||
"darwin",
|
||||
"darwin","solaris","freebsd"
|
||||
};
|
||||
|
||||
for (unsigned i = 0; i < sizeof(reserved) / sizeof(reserved[0]); i++)
|
||||
|
||||
@@ -541,6 +541,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
global.params.os = OSFreeBSD;
|
||||
VersionCondition::addPredefinedGlobalIdent("freebsd");
|
||||
VersionCondition::addPredefinedGlobalIdent("FreeBSD");
|
||||
VersionCondition::addPredefinedGlobalIdent("Posix");
|
||||
}
|
||||
// solaris
|
||||
@@ -548,6 +549,7 @@ int main(int argc, char** argv)
|
||||
{
|
||||
global.params.os = OSSolaris;
|
||||
VersionCondition::addPredefinedGlobalIdent("solaris");
|
||||
VersionCondition::addPredefinedGlobalIdent("Solaris");
|
||||
VersionCondition::addPredefinedGlobalIdent("Posix");
|
||||
}
|
||||
// unsupported
|
||||
|
||||
Reference in New Issue
Block a user