[PATCH] includes: Fix alignment for 64-bits

Maarten Lankhorst m.b.lankhorst at gmail.com
Sun Dec 14 18:08:09 CST 2008


---
 include/wine/port.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/wine/port.h b/include/wine/port.h
index fd37698..05bed61 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -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" \
-- 
1.5.6.5


--------------030007080008010807000705--



More information about the wine-patches mailing list