diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/osl/endian.h | 2 | ||||
-rw-r--r-- | include/sal/alloca.h | 2 | ||||
-rw-r--r-- | include/sal/config.h | 11 |
3 files changed, 14 insertions, 1 deletions
diff --git a/include/osl/endian.h b/include/osl/endian.h index c3a2344f77fb..fb9b514c128a 100644 --- a/include/osl/endian.h +++ b/include/osl/endian.h @@ -74,6 +74,8 @@ extern "C" { # elif defined _BIG_ENDIAN # define OSL_BIGENDIAN # endif +#elif defined EMSCRIPTEN +# define OSL_LITENDIAN #else # error "Target platform not specified !" #endif diff --git a/include/sal/alloca.h b/include/sal/alloca.h index a8edc5af2872..ce6b60cc9f8f 100644 --- a/include/sal/alloca.h +++ b/include/sal/alloca.h @@ -25,7 +25,7 @@ #define INCLUDED_SAL_ALLOCA_H #if defined(__sun) || defined(LINUX) || defined(AIX) || defined(ANDROID) || defined(HAIKU) \ - || defined(MACOSX) || defined(IOS) + || defined(MACOSX) || defined(IOS) || defined(EMSCRIPTEN) #ifndef INCLUDED_ALLOCA_H #include <alloca.h> diff --git a/include/sal/config.h b/include/sal/config.h index 74d482fc7631..bf5958519426 100644 --- a/include/sal/config.h +++ b/include/sal/config.h @@ -83,6 +83,17 @@ #define SAL_CONFIGFILE(name) name "rc" #endif +#ifdef EMSCRIPTEN +#define SAL_UNX +#define SAL_DLLEXTENSION ".bc" +#define SAL_EXEEXTENSION "" +#define SAL_DLLPREFIX "lib" +#define SAL_PATHSEPARATOR ':' +#define SAL_PATHDELIMITER '/' +#define SAL_NEWLINE_STRING "\n" +#define SAL_CONFIGFILE(name) name "rc" +#endif + /* The following spell is for Solaris and its descendants. * See the "Solaris" section of * <http://sourceforge.net/p/predef/wiki/OperatingSystems/>, and |