Commit 0995117b authored by Alexandre Julliard's avatar Alexandre Julliard

include: Get rid of ALLOW_UNALIGNED_ACCESS.

parent a4c6ad6b
......@@ -78,8 +78,6 @@ typedef struct
/*
* We make addr = 4n + 2 and set *((WORD *)addr - 1) = &addr like Windows does
* in case something actually relies on this.
* Note that if the architecture does not allow unaligned accesses, we make
* addr = 4n + 4 to avoid returning unaligned pointers from LocalAlloc etc.
*
* An unused handle has lock = flags = 0xff. In windows addr is that of next
* free handle, at the moment in wine we set it to 0.
......@@ -88,12 +86,7 @@ typedef struct
* (LMEM_DISCARDED >> 8)
*/
#ifdef ALLOW_UNALIGNED_ACCESS
# define MOVEABLE_PREFIX sizeof(HLOCAL16)
#else
# define MOVEABLE_PREFIX sizeof(int)
#endif
#define MOVEABLE_PREFIX sizeof(HLOCAL16)
#include "pshpack1.h"
......
......@@ -271,34 +271,24 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */
#if defined(__i386__)
# undef WORDS_BIGENDIAN
# define ALLOW_UNALIGNED_ACCESS
#elif defined(__x86_64__)
# undef WORDS_BIGENDIAN
# define ALLOW_UNALIGNED_ACCESS
#elif defined(__powerpc__)
# define WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__ALPHA__)
# undef WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__ARMEB__)
# define WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__ARMEL__) || defined(__arm__)
# undef WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__AARCH64EB__)
# define WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__AARCH64EL__) || defined(__aarch64__)
# undef WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__MIPSEB__)
# define WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif defined(__MIPSEL__)
# undef WORDS_BIGENDIAN
# undef ALLOW_UNALIGNED_ACCESS
#elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl)
# error Unknown CPU architecture!
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment