forked from Mirrors/wine-wine
include: Get rid of ALLOW_UNALIGNED_ACCESS.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>feature/deterministic
parent
a4c6ad6b1f
commit
0995117b50
|
@ -78,8 +78,6 @@ typedef struct
|
||||||
/*
|
/*
|
||||||
* We make addr = 4n + 2 and set *((WORD *)addr - 1) = &addr like Windows does
|
* We make addr = 4n + 2 and set *((WORD *)addr - 1) = &addr like Windows does
|
||||||
* in case something actually relies on this.
|
* 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
|
* 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.
|
* free handle, at the moment in wine we set it to 0.
|
||||||
|
@ -88,12 +86,7 @@ typedef struct
|
||||||
* (LMEM_DISCARDED >> 8)
|
* (LMEM_DISCARDED >> 8)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef ALLOW_UNALIGNED_ACCESS
|
#define MOVEABLE_PREFIX sizeof(HLOCAL16)
|
||||||
# define MOVEABLE_PREFIX sizeof(HLOCAL16)
|
|
||||||
#else
|
|
||||||
# define MOVEABLE_PREFIX sizeof(int)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#include "pshpack1.h"
|
#include "pshpack1.h"
|
||||||
|
|
||||||
|
|
|
@ -271,34 +271,24 @@ typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
|
||||||
/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */
|
/* These are hardcoded to avoid dependencies on config.h in Winelib apps. */
|
||||||
#if defined(__i386__)
|
#if defined(__i386__)
|
||||||
# undef WORDS_BIGENDIAN
|
# undef WORDS_BIGENDIAN
|
||||||
# define ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__x86_64__)
|
#elif defined(__x86_64__)
|
||||||
# undef WORDS_BIGENDIAN
|
# undef WORDS_BIGENDIAN
|
||||||
# define ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__powerpc__)
|
#elif defined(__powerpc__)
|
||||||
# define WORDS_BIGENDIAN
|
# define WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__ALPHA__)
|
#elif defined(__ALPHA__)
|
||||||
# undef WORDS_BIGENDIAN
|
# undef WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__ARMEB__)
|
#elif defined(__ARMEB__)
|
||||||
# define WORDS_BIGENDIAN
|
# define WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__ARMEL__) || defined(__arm__)
|
#elif defined(__ARMEL__) || defined(__arm__)
|
||||||
# undef WORDS_BIGENDIAN
|
# undef WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__AARCH64EB__)
|
#elif defined(__AARCH64EB__)
|
||||||
# define WORDS_BIGENDIAN
|
# define WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__AARCH64EL__) || defined(__aarch64__)
|
#elif defined(__AARCH64EL__) || defined(__aarch64__)
|
||||||
# undef WORDS_BIGENDIAN
|
# undef WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__MIPSEB__)
|
#elif defined(__MIPSEB__)
|
||||||
# define WORDS_BIGENDIAN
|
# define WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif defined(__MIPSEL__)
|
#elif defined(__MIPSEL__)
|
||||||
# undef WORDS_BIGENDIAN
|
# undef WORDS_BIGENDIAN
|
||||||
# undef ALLOW_UNALIGNED_ACCESS
|
|
||||||
#elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl)
|
#elif !defined(RC_INVOKED) && !defined(__WIDL__) && !defined(__midl)
|
||||||
# error Unknown CPU architecture!
|
# error Unknown CPU architecture!
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue