mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:24:13 +08:00
mdbx: add check __ALIGNED__ for UNALIGNED_OK macro.
This commit is contained in:
parent
3c5cc40c77
commit
a282965aa0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user