includes: Fix alignment for 64-bits
authorMaarten Lankhorst <m.b.lankhorst@gmail.com>
Mon, 15 Dec 2008 00:08:09 +0000 (15 01:08 +0100)
committerMaarten Lankhorst <m.b.lankhorst@gmail.com>
Sat, 27 Dec 2008 20:18:38 +0000 (27 21:18 +0100)
include/wine/port.h

index 817f02b..416408a 100644 (file)
@@ -206,7 +206,7 @@ struct statvfs
 #if defined(__GNUC__) && !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined(__APPLE__)
 # define __ASM_GLOBAL_FUNC(name,code) \
       __asm__( ".text\n\t" \
-               ".align 4\n\t" \
+               ".align 8\n\t" \
                ".globl " __ASM_NAME(#name) "\n\t" \
                __ASM_FUNC(#name) "\n" \
                __ASM_NAME(#name) ":\n\t" \
@@ -215,7 +215,8 @@ struct statvfs
 #else  /* defined(__GNUC__) && !defined(__MINGW32__) && !defined(__APPLE__)  */
 # define __ASM_GLOBAL_FUNC(name,code) \
       void __asm_dummy_##name(void) { \
-          asm( ".align 4\n\t" \
+          asm(
+               ".align 8\n\t" \
                ".globl " __ASM_NAME(#name) "\n\t" \
                __ASM_FUNC(#name) "\n" \
                __ASM_NAME(#name) ":\n\t" \