summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-03-09 13:55:14 +0200
committerTor Lillqvist <tml@collabora.com>2015-03-09 13:59:18 +0200
commitca3a68c728a6312795b14885aa829396b9275bc8 (patch)
treef96f0207e5cece943785fa3a3cadfdec896e46f3 /include
parentf3eeda3b6d6fb6438e9ed85335a8e12a8d1c8d71 (diff)
Look for .dylib on OS X, but ...
... note that the LibreOfficeKit bits aren't built for OS X. I don't recall if there is some fundamental reason why not. Was it so that for OS X, like for iOS, a "virtual device" should be created with a CGContext and not a pixmap buffer? Change-Id: I6e1fedb89e7fe409baf2ea1ac7f3b65b0f1c776b
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitInit.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitInit.h b/include/LibreOfficeKit/LibreOfficeKitInit.h
index a6599fd59a80..18731b7b7f9f 100644
--- a/include/LibreOfficeKit/LibreOfficeKitInit.h
+++ b/include/LibreOfficeKit/LibreOfficeKitInit.h
@@ -28,8 +28,13 @@ extern "C"
#ifdef _AIX
# include <sys/ldr.h>
#endif
- #define TARGET_LIB "lib" "sofficeapp" ".so"
- #define TARGET_MERGED_LIB "lib" "mergedlo" ".so"
+ #ifdef __APPLE__
+ #define TARGET_LIB "lib" "sofficeapp" ".dylib"
+ #define TARGET_MERGED_LIB "lib" "mergedlo" ".dylib"
+ #else
+ #define TARGET_LIB "lib" "sofficeapp" ".so"
+ #define TARGET_MERGED_LIB "lib" "mergedlo" ".so"
+ #endif
#define SEPERATOR '/'
void *_dlopen(const char *pFN)