Fix kernel32 linking under Cygwin
Dmitry Timoshkov
dmitry at baikal.ru
Sat Mar 27 01:21:42 CST 2004
Hello,
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Fix kernel32 linking under Cygwin.
--- cvs/hq/wine/tools/winebuild/relay.c Tue Mar 16 03:05:06 2004
+++ wine/tools/winebuild/relay.c Sat Mar 27 06:21:16 2004
@@ -1069,12 +1069,12 @@ void BuildPendingEventCheck( FILE *outfi
fprintf( outfile, "\t.byte 0x64\n\ttestl $0xffffffff,(%d)\n",
STRUCTOFFSET(TEB,vm86_pending) );
- fprintf( outfile, "\tje DPMI_PendingEventCheck_Cleanup\n" );
+ fprintf( outfile, "\tje " __ASM_NAME("DPMI_PendingEventCheck_Cleanup") "\n" );
fprintf( outfile, "\t.byte 0x64\n\ttestl $0xffffffff,(%d)\n",
STRUCTOFFSET(TEB,dpmi_vif) );
- fprintf( outfile, "\tje DPMI_PendingEventCheck_Cleanup\n" );
+ fprintf( outfile, "\tje " __ASM_NAME("DPMI_PendingEventCheck_Cleanup") "\n" );
/* Process pending events. */
@@ -1082,14 +1082,12 @@ void BuildPendingEventCheck( FILE *outfi
/* Start cleanup. Restore fs register. */
- fprintf( outfile, ".globl DPMI_PendingEventCheck_Cleanup\n" );
- fprintf( outfile, "DPMI_PendingEventCheck_Cleanup:\n" );
+ function_header( outfile, "DPMI_PendingEventCheck_Cleanup" );
fprintf( outfile, "\tpopw %%fs\n" );
/* Return from function. */
- fprintf( outfile, ".globl DPMI_PendingEventCheck_Return\n" );
- fprintf( outfile, "DPMI_PendingEventCheck_Return:\n" );
+ function_header( outfile, "DPMI_PendingEventCheck_Return" );
fprintf( outfile, "\tiret\n" );
}
More information about the wine-patches
mailing list