Skip to content

Commit

Permalink
Merge pull request #4111 from joakim-noah/add_glibc
Browse files Browse the repository at this point in the history
Add predefined global version for Glibc
  • Loading branch information
rainers committed Dec 1, 2014
2 parents ab5dbd5 + b5a9ca0 commit e17631e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion samples/chello.d
Expand Up @@ -19,7 +19,7 @@ import core.stdc.stdio;
import core.stdc.stdlib;
import std.string;
import core.sys.windows.windows;
import std.c.windows.com;
import core.sys.windows.com;

GUID CLSID_Hello = { 0x30421140, 0, 0, [0xC0, 0, 0, 0, 0, 0, 0, 0x46] };
GUID IID_IHello = { 0x00421140, 0, 0, [0xC0, 0, 0, 0, 0, 0, 0, 0x46] };
Expand Down
2 changes: 1 addition & 1 deletion samples/dclient.d
Expand Up @@ -16,7 +16,7 @@
import core.stdc.stdio;
import core.stdc.stdlib;
import core.sys.windows.windows;
import std.c.windows.com;
import core.sys.windows.com;

GUID CLSID_Hello = { 0x30421140, 0, 0, [0xC0, 0, 0, 0, 0, 0, 0, 0x46] };
GUID IID_IHello = { 0x00421140, 0, 0, [0xC0, 0, 0, 0, 0, 0, 0, 0x46] };
Expand Down
2 changes: 1 addition & 1 deletion samples/dserver.d
Expand Up @@ -19,7 +19,7 @@ import core.stdc.stdlib;
import core.stdc.string;
import std.string;
import core.sys.windows.windows;
import std.c.windows.com;
import core.sys.windows.com;

import chello;

Expand Down
3 changes: 3 additions & 0 deletions src/cond.c
Expand Up @@ -215,6 +215,9 @@ bool VersionCondition::isPredefined(const char *ident)
"BigEndian",
"ELFv1",
"ELFv2",
"CRuntime_Digitalmars",
"CRuntime_Glibc",
"CRuntime_Microsoft",
"D_Coverage",
"D_Ddoc",
"D_InlineAsm_X86",
Expand Down
6 changes: 3 additions & 3 deletions src/mars.c
Expand Up @@ -1141,7 +1141,7 @@ Language changes listed by -transition=id:\n\
}
else
{
VersionCondition::addPredefinedGlobalIdent("D_InlineAsm");
VersionCondition::addPredefinedGlobalIdent("D_InlineAsm"); //legacy
VersionCondition::addPredefinedGlobalIdent("D_InlineAsm_X86");
VersionCondition::addPredefinedGlobalIdent("X86");
#if TARGET_OSX
Expand All @@ -1162,8 +1162,8 @@ Language changes listed by -transition=id:\n\
VersionCondition::addPredefinedGlobalIdent("CRuntime_Microsoft");
else
VersionCondition::addPredefinedGlobalIdent("CRuntime_DigitalMars");
#else
VersionCondition::addPredefinedGlobalIdent("CRuntime_GNU");
#elif TARGET_LINUX
VersionCondition::addPredefinedGlobalIdent("CRuntime_Glibc");
#endif
if (global.params.isLP64)
VersionCondition::addPredefinedGlobalIdent("D_LP64");
Expand Down

0 comments on commit e17631e

Please sign in to comment.