diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-09-16 17:03:17 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2015-10-05 10:24:35 +0000 |
commit | 338f19a8cecfa632fa23d42cc27769a832d62104 (patch) | |
tree | 32a9f5f89828a35e4c59c9fddab7da44bea8eeb6 /include/sal | |
parent | e62c2b03c79cf00c7bb7f08e986f73c76b784581 (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/sal')
-rw-r--r-- | include/sal/alloca.h | 2 | ||||
-rw-r--r-- | include/sal/config.h | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/include/sal/alloca.h b/include/sal/alloca.h index dfa808967a91..ad4f512f7ff0 100644 --- a/include/sal/alloca.h +++ b/include/sal/alloca.h @@ -20,7 +20,7 @@ #ifndef INCLUDED_SAL_ALLOCA_H #define INCLUDED_SAL_ALLOCA_H -#if defined (SOLARIS) || defined (LINUX) || defined(AIX) || defined(ANDROID) +#if defined (SOLARIS) || defined (LINUX) || defined(AIX) || defined(ANDROID) || defined(EMSCRIPTEN) #ifndef INCLUDED_ALLOCA_H #include <alloca.h> diff --git a/include/sal/config.h b/include/sal/config.h index e891a6b09424..c86b12ffd9f9 100644 --- a/include/sal/config.h +++ b/include/sal/config.h @@ -63,6 +63,16 @@ #define SAL_CONFIGFILE( name ) name "rc" #endif +#ifdef EMSCRIPTEN +#define SAL_UNX +#define SAL_DLLEXTENSION ".bc" +#define SAL_DLLPREFIX "lib" +#define SAL_PATHSEPARATOR ':' +#define SAL_PATHDELIMITER '/' +#define SAL_NEWLINE_STRING "\n" +#define SAL_CONFIGFILE( name ) name "rc" +#endif + #ifdef MACOSX #define SAL_UNX #define SAL_DLLEXTENSION ".dylib" |