mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 17:43:35 +03:00
Added new FreeBSD and Solaris predefined version identifiers.
This commit is contained in:
parent
b64ad3299e
commit
e2ba08388f
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue