[ros-diffs] [tkreuzer] 43465: Define __unaligned to nothing on gcc, we don't need it for amd64, and the old definition was wrong anyway. Fix definition of UNALIGNED for amd64.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Wed Oct 14 22:09:13 CEST 2009


Author: tkreuzer
Date: Wed Oct 14 22:09:13 2009
New Revision: 43465

URL: http://svn.reactos.org/svn/reactos?rev=43465&view=rev
Log:
Define __unaligned to nothing on gcc, we don't need it for amd64, and the old definition was wrong anyway.
Fix definition of UNALIGNED for amd64.

Modified:
    trunk/reactos/include/crt/_mingw.h
    trunk/reactos/include/psdk/winnt.h

Modified: trunk/reactos/include/crt/_mingw.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/crt/_mingw.h?rev=43465&r1=43464&r2=43465&view=diff
==============================================================================
--- trunk/reactos/include/crt/_mingw.h [iso-8859-1] (original)
+++ trunk/reactos/include/crt/_mingw.h [iso-8859-1] Wed Oct 14 22:09:13 2009
@@ -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

Modified: trunk/reactos/include/psdk/winnt.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winnt.h?rev=43465&r1=43464&r2=43465&view=diff
==============================================================================
--- trunk/reactos/include/psdk/winnt.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winnt.h [iso-8859-1] Wed Oct 14 22:09:13 2009
@@ -56,8 +56,9 @@
 #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




More information about the Ros-diffs mailing list