summaryrefslogtreecommitdiff
path: root/include/osl
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-09-16 17:03:17 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-10-05 10:24:35 +0000
commit338f19a8cecfa632fa23d42cc27769a832d62104 (patch)
tree32a9f5f89828a35e4c59c9fddab7da44bea8eeb6 /include/osl
parente62c2b03c79cf00c7bb7f08e986f73c76b784581 (diff)
Emscripten: First steps of porting to Emscripten
See https://wiki.documentfoundation.org/Development/Emscripten for details Change-Id: I977a8b9e98b9be13c263fef48f567b92347d0492 Reviewed-on: https://gerrit.libreoffice.org/18643 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/osl')
-rw-r--r--include/osl/endian.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/osl/endian.h b/include/osl/endian.h
index 530549308d6e..4043c403d86d 100644
--- a/include/osl/endian.h
+++ b/include/osl/endian.h
@@ -68,6 +68,13 @@ extern "C" {
# endif
#endif
+#ifdef EMSCRIPTEN
+# include <endian.h>
+# ifndef _LITTLE_ENDIAN
+# define _LITTLE_ENDIAN
+# endif
+#endif
+
#ifdef NETBSD
# include <machine/endian.h>
# if BYTE_ORDER == LITTLE_ENDIAN
@@ -132,7 +139,8 @@ extern "C" {
!defined(AIX) && !defined(OPENBSD) && \
!defined(SOLARIS) && !defined(MACOSX) && !defined(FREEBSD) && \
!defined(DRAGONFLY) && \
- !defined(IOS) && !defined(ANDROID)
+ !defined(IOS) && !defined(ANDROID) && \
+ !defined(EMSCRIPTEN)
# error "Target platform not specified !"
#endif