Kaydet (Commit) f0cf5557 authored tarafından Baptiste Daroussin's avatar Baptiste Daroussin Kaydeden (comit) Caolán McNamara

Fix build on BSDs

Change-Id: I88fbad89a78262f4c3275aa3a01fbebaacece245
Reviewed-on: https://gerrit.libreoffice.org/20660Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 3a8b0091
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#define CORE_LITTLE_ENDIAN #define CORE_LITTLE_ENDIAN
#endif /* Def _MSC_VER */ #endif /* Def _MSC_VER */
#if defined(__linux) || defined(__OpenBSD__) || \ #if defined(__linux) || defined(__FreeBSD_kernel__)
defined(__FreeBSD__) || defined(__NetBSD__) || \
defined(__DragonFly__) || defined(__FreeBSD_kernel__)
#include <sys/param.h> #include <sys/param.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN #if __BYTE_ORDER == __LITTLE_ENDIAN
#undef CORE_BIG_ENDIAN #undef CORE_BIG_ENDIAN
...@@ -46,7 +44,21 @@ ...@@ -46,7 +44,21 @@
#undef CORE_LITTLE_ENDIAN #undef CORE_LITTLE_ENDIAN
#endif /* __BYTE_ORDER == __BIG_ENDIAN */ #endif /* __BYTE_ORDER == __BIG_ENDIAN */
#endif /* !(__BYTE_ORDER == __LITTLE_ENDIAN) */ #endif /* !(__BYTE_ORDER == __LITTLE_ENDIAN) */
#endif /* Def __linux || Def *BSD */ #endif /* Def __linux */
#if defined(__OpenBSD__) || defined(__FreeBSD__) || \
defined(__NetBSD__) || defined(__DragonFly__)
#include <machine/endian.h>
#if _BYTE_ORDER == _LITTLE_ENDIAN
#undef CORE_BIG_ENDIAN
#define CORE_LITTLE_ENDIAN
#else /* !(_BYTE_ORDER == _LITTLE_ENDIAN) */
#if _BYTE_ORDER == _BIG_ENDIAN
#define CORE_BIG_ENDIAN
#undef CORE_LITTLE_ENDIAN
#endif /* _BYTE_ORDER == _BIG_ENDIAN */
#endif /* !(_BYTE_ORDER == _LITTLE_ENDIAN) */
#endif /* 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