diff gen/asm-x86-64.h @ 1190:ea7b8b6c96c0

Some more fixups for mingw -- missing underscores
author Kelly Wilson <wilsonk cpsc.ucalgary.ca>
date Thu, 02 Apr 2009 17:27:53 -0600
parents 97d80437cb80
children 1e30cc395d2e
line wrap: on
line diff
--- a/gen/asm-x86-64.h	Thu Apr 02 20:56:39 2009 +0200
+++ b/gen/asm-x86-64.h	Thu Apr 02 17:27:53 2009 -0600
@@ -1656,7 +1656,7 @@
                                 }
 
                                 // osx needs an extra underscore
-                                if ( global.params.os == OSMacOSX )
+                                if ( global.params.os == OSMacOSX || global.params.os == OSWindows )
                                     insnTemplate << "_";
 
                                 // print out the mangle
@@ -2287,8 +2287,8 @@
                                 {
                                     use_star = false;
                                     // simply write out the mangle
-                                    // on osx, prepend extra _
-                                    if ( global.params.os == OSMacOSX )
+                                    // on osx and windows, prepend extra _
+                                    if ( global.params.os == OSMacOSX || global.params.os == OSWindows )
                                         insnTemplate << "_";
                                     insnTemplate << decl->mangle();
 //              addOperand2("${", ":c}", Arg_Pointer, e, asmcode);