Define __unaligned to nothing on gcc, we don't need it for amd64, and the old definit...
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 14 Oct 2009 20:09:13 +0000 (20:09 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 14 Oct 2009 20:09:13 +0000 (20:09 +0000)
Fix definition of UNALIGNED for amd64.

svn path=/trunk/; revision=43465

reactos/include/crt/_mingw.h
reactos/include/psdk/winnt.h

index a71b387..3896fd1 100644 (file)
@@ -77,7 +77,7 @@
 # define __unaligned
 #else
 # ifdef __GNUC__
-#  define __unaligned __attribute((packed))
+#  define __unaligned
 # elif defined(_MSC_VER) && !defined(_M_IA64) && !defined(_M_AMD64)
 #  define __unaligned
 # else
index 627e3dc..d3772d3 100644 (file)
@@ -56,8 +56,9 @@ extern "C" {
 #include <string.h>
 
 /* FIXME: add more architectures. Is there a way to specify this in GCC? */
-#ifdef _X86_
-#define UNALIGNED
+#if defined(_M_AMD64)
+#undef UNALIGNED
+#define UNALIGNED __unaligned
 #else
 #define UNALIGNED
 #endif