Kaydet (Commit) b23f2d78 authored tarafından Robert Nagy's avatar Robert Nagy

use the same memory alignment for *BSD as on Linux

üst 5ed43db9
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
#define USE_MEMORY_ALIGNMENT 64 /* big value -> no alignment */ #define USE_MEMORY_ALIGNMENT 64 /* big value -> no alignment */
#endif /* Def __CYGWIN__ */ #endif /* Def __CYGWIN__ */
#ifdef __linux #if defined(__linux) || defined(__OpenBSD__) || \
defined(__FreeBSD__) || defined(__NetBSD__) || \
defined(__DragonFly__)
#if __BYTE_ORDER == __LITTLE_ENDIAN #if __BYTE_ORDER == __LITTLE_ENDIAN
#define CORE_BIG_ENDIAN 0 #define CORE_BIG_ENDIAN 0
#define CORE_LITTLE_ENDIAN 1 #define CORE_LITTLE_ENDIAN 1
...@@ -48,7 +50,7 @@ ...@@ -48,7 +50,7 @@
#define USE_MEMORY_ALIGNMENT 4 #define USE_MEMORY_ALIGNMENT 4
#endif /* __BYTE_ORDER == __BIG_ENDIAN */ #endif /* __BYTE_ORDER == __BIG_ENDIAN */
#endif /* !(__BYTE_ORDER == __LITTLE_ENDIAN) */ #endif /* !(__BYTE_ORDER == __LITTLE_ENDIAN) */
#endif /* Def __linux */ #endif /* Def __linux || Def *BSD */
#ifdef __sun #ifdef __sun
#ifdef __sparc #ifdef __sparc
......
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