diff dmd/backend/iasm.d @ 25:3f834bed4f13

FWindows linking issues fixed
author korDen
date Tue, 13 Apr 2010 00:38:04 +0400
parents fd4acc376c45
children c369e9924151
line wrap: on
line diff
--- a/dmd/backend/iasm.d	Mon Apr 12 17:02:32 2010 +0100
+++ b/dmd/backend/iasm.d	Tue Apr 13 00:38:04 2010 +0400
@@ -77,7 +77,11 @@
 	"word".ptr,
 ];
 
-extern (C) code * cat(code *c1,code *c2);
+version (Windows) {
+	extern (Pascal) code * cat(code *c1,code *c2);
+} else {
+	extern (C) code * cat(code *c1,code *c2);
+}
 
 version (Bug4059)
 {
@@ -88,8 +92,10 @@
 }
 else
 {
-	OP* asm_op_lookup(const(char)* s);
-	int binary(const(char)* p , const(char)** tab, int high);
+	extern (C++) {
+		OP* asm_op_lookup(const(char)* s);
+		int binary(const(char)* p , const(char)** tab, int high);
+	}
 }
 
 extern (C++) //extern