diff --git a/src/osal.h b/src/osal.h index f708864b..8a34915d 100644 --- a/src/osal.h +++ b/src/osal.h @@ -118,9 +118,11 @@ typedef pthread_mutex_t mdbx_fastmutex_t; #endif #if !defined(UNALIGNED_OK) -#if defined(__i386) || defined(__x86_64__) || defined(_M_IX86) || \ - defined(_M_X64) || defined(i386) || defined(_X86_) || defined(__i386__) || \ - defined(_X86_64_) || defined(__ARM_FEATURE_UNALIGNED) || defined(__e2k__) +#if (defined(__i386) || defined(__x86_64__) || defined(_M_IX86) || \ + defined(_M_X64) || defined(i386) || defined(_X86_) || \ + defined(__i386__) || defined(_X86_64_) || \ + defined(__ARM_FEATURE_UNALIGNED) || defined(__e2k__)) && \ + !defined(__ALIGNED__) #define UNALIGNED_OK 1 #else #define UNALIGNED_OK 0