change mingw32 versioning to version(Windows)

This commit is contained in:
Kelly Wilson
2009-05-31 11:20:26 -06:00
parent 23919b4de4
commit 19149bc542
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ void main()
version(D_InlineAsm_X86)
{
version(mingw32)
version(Windows)
{
asm
{

View File

@@ -9,7 +9,7 @@ extern(C):
version(darwin) {
int* __error();
alias __error __errno_location;
} else version (mingw32) {
} else version (Windows) {
int* strerror();
alias strerror __errno_location;
} else {

View File

@@ -3,7 +3,7 @@ int foo(int op)(int a, int b)
version(X86)
{
const OP = (op == '+') ? "add" : "sub";
version (mingw32)
version (Windows)
{
asm { naked; }
mixin("asm{push EBP;mov EBP,ESP;sub ESP,8;mov ECX,[EBP+8];"~OP~" EAX, ECX;add ESP,8;pop EBP;}");