mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
change mingw32 versioning to version(Windows)
This commit is contained in:
@@ -15,7 +15,7 @@ void main()
|
||||
|
||||
version(D_InlineAsm_X86)
|
||||
{
|
||||
version(mingw32)
|
||||
version(Windows)
|
||||
{
|
||||
asm
|
||||
{
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;}");
|
||||
|
||||
Reference in New Issue
Block a user