diff options
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitInit.h | 10 | ||||
-rwxr-xr-x | ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.c | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitInit.h b/include/LibreOfficeKit/LibreOfficeKitInit.h index d19aa0fae9ef..ce8daaf28892 100644 --- a/include/LibreOfficeKit/LibreOfficeKitInit.h +++ b/include/LibreOfficeKit/LibreOfficeKitInit.h @@ -43,7 +43,7 @@ extern "C" #define SEPARATOR '/' #ifndef __OBJC__ -#ifdef __cplusplus +#ifndef IOS_SWIFTCBRIDGE inline #endif #endif @@ -57,7 +57,7 @@ extern "C" } #ifndef __OBJC__ -#ifdef __cplusplus +#ifndef IOS_SWIFTCBRIDGE inline #endif #endif @@ -67,7 +67,7 @@ extern "C" } #ifndef __OBJC__ -#ifdef __cplusplus +#ifndef IOS_SWIFTCBRIDGE inline #endif #endif @@ -77,7 +77,7 @@ extern "C" } #ifndef __OBJC__ -#ifdef __cplusplus +#ifndef IOS_SWIFTCBRIDGE inline #endif #endif @@ -87,7 +87,7 @@ extern "C" } #ifndef __OBJC__ -#ifdef __cplusplus +#ifndef IOS_SWIFTCBRIDGE inline #endif #endif diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.c b/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.c index 748c601f268e..539713d95160 100755 --- a/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.c +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/lokit.c @@ -7,7 +7,9 @@ // #include <stdio.h> #define LOK_USE_UNSTABLE_API +#define IOS_SWIFTCBRIDGE #include <LibreOfficeKit/LibreOfficeKitInit.h> +#undef IOS_SWIFTCBRIDGE // pointers to our instance static LibreOfficeKit* kit; |