diff options
author | Tor Lillqvist <tml@collabora.com> | 2022-12-12 17:59:30 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2022-12-13 08:19:40 +0000 |
commit | 1e421b30e2440f8a6e82ba4df1be3fb7c63e6996 (patch) | |
tree | 1f2471ba43f429daa54d9776d5e95ad0e9975dbb /include/LibreOfficeKit/LibreOfficeKitInit.h | |
parent | 75093a9f7fbde760a3034f41694739c7454cb7eb (diff) |
Attempt to add ifdefs for WASM (Emscripten) for LOKit-based code
Change-Id: I5b2556d1be61fa3a1d7996ce8d61958fbe7984c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144002
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'include/LibreOfficeKit/LibreOfficeKitInit.h')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitInit.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitInit.h b/include/LibreOfficeKit/LibreOfficeKitInit.h index 08feb42c1e18..506f373c5108 100644 --- a/include/LibreOfficeKit/LibreOfficeKitInit.h +++ b/include/LibreOfficeKit/LibreOfficeKitInit.h @@ -259,13 +259,13 @@ typedef int (LokHookPreInit) ( const char *install_path, const char typedef int (LokHookPreInit2) ( const char *install_path, const char *user_profile_url, LibreOfficeKit** kit); -#if defined(IOS) || defined(ANDROID) +#if defined(IOS) || defined(ANDROID) || defined(__EMSCRIPTEN__) LibreOfficeKit *libreofficekit_hook_2(const char* install_path, const char* user_profile_path); #endif static LibreOfficeKit *lok_init_2( const char *install_path, const char *user_profile_url ) { -#if !defined(IOS) && !defined(ANDROID) +#if !defined(IOS) && !defined(ANDROID) && !defined(__EMSCRIPTEN__) void *dlhandle; char *imp_lib; LokHookFunction *pSym; |