diff options
Diffstat (limited to 'include/sal')
-rw-r--r-- | include/sal/alloca.h | 2 | ||||
-rw-r--r-- | include/sal/config.h | 11 |
2 files changed, 12 insertions, 1 deletions
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 |