Compiling Wine on Cygwin/with MSVC

Martin Fuchs martin-fuchs at gmx.net
Tue Oct 5 03:38:54 CDT 2004


Hi Hans,

> Wait, I see now that there's another use of .previous which is protected
> differently. The path below may solve your problem.

thanks - I am now using the following change:


Changelog:
Don't use ".previous" for MinGW and Cygwin builds


Index: port.h
===================================================================
RCS file: /home/wine/wine/include/wine/port.h,v
retrieving revision 1.59
diff -u -p -d -r1.59 port.h
--- port.h      16 Sep 2004 20:34:27 -0000      1.59
+++ port.h      5 Oct 2004 09:13:11 -0000
@@ -188,7 +188,7 @@ struct statvfs

 /* Macros to define assembler functions somewhat portably */

-#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__APPLE__)
+#if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__APPLE__)
 # define __ASM_GLOBAL_FUNC(name,code) \
       __asm__( ".text\n\t" \
                ".align 4\n\t" \
@@ -215,7 +215,7 @@ struct statvfs
 # define DECL_GLOBAL_CONSTRUCTOR(func) \
     static void func(void) __attribute__((constructor)); \
     static void func(void)
-#elif defined(__i386__)
+#elif defined(__i386__) && !defined(__MINGW32__) && !defined(__CYGWIN__)
 # define DECL_GLOBAL_CONSTRUCTOR(func) \
     static void __dummy_init_##func(void) { \
         asm(".section .init,\"ax\"\n\t" \





More information about the wine-patches mailing list