mdbx: add check __ALIGNED__ for UNALIGNED_OK macro.

This commit is contained in:
Leo Yuriev 2018-03-21 21:10:57 +03:00
parent 3c5cc40c77
commit a282965aa0

View File

@ -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