summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorKacper Kasper <kacperkasper@gmail.com>2018-02-25 02:55:15 +0100
committerMichael Meeks <michael.meeks@collabora.com>2018-03-05 14:17:27 +0100
commit9c036b1d3db253a1fd43ce76ce1d919e2029af59 (patch)
tree6e5130faa9421c0c093059b5cff08a4356407d28 /solenv/bin
parent73312eaff10b19d1286c225ee335451e1800df4a (diff)
Make LibreOffice buildable on Haiku.
* Obviously VCL wiring is missing, but most components do build. Change-Id: Ie853ada1423a8f4c2b647be59cd47a7730c42978 Reviewed-on: https://gerrit.libreoffice.org/50293 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'solenv/bin')
-rw-r--r--solenv/bin/concat-deps.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/solenv/bin/concat-deps.c b/solenv/bin/concat-deps.c
index b815cad29b67..d02f62c48332 100644
--- a/solenv/bin/concat-deps.c
+++ b/solenv/bin/concat-deps.c
@@ -59,6 +59,19 @@
#endif /* !(_BYTE_ORDER == _LITTLE_ENDIAN) */
#endif /* Def *BSD */
+#if defined(__HAIKU__)
+#include <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 __HAIKU__ */
+
#ifdef __sun
#ifdef __sparc
#define CORE_BIG_ENDIAN