diff options
-rw-r--r-- | cppuhelper/Library_cppuhelper.mk | 6 | ||||
-rw-r--r-- | cppuhelper/source/shlib.cxx | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/cppuhelper/Library_cppuhelper.mk b/cppuhelper/Library_cppuhelper.mk index 5e131cb6c43e..e9caf2dfd6d6 100644 --- a/cppuhelper/Library_cppuhelper.mk +++ b/cppuhelper/Library_cppuhelper.mk @@ -39,6 +39,12 @@ $(eval $(call gb_Library_use_static_libraries,cppuhelper,\ findsofficepath \ )) +ifeq ($(OS),iOS) +$(eval $(call gb_Library_add_cxxflags,cppuhelper,\ + $(gb_OBJCXXFLAGS) \ +)) +endif + $(eval $(call gb_Library_add_exception_objects,cppuhelper,\ cppuhelper/source/access_control \ cppuhelper/source/bootstrap \ diff --git a/cppuhelper/source/shlib.cxx b/cppuhelper/source/shlib.cxx index b0a938a4abac..41af3dd80ebc 100644 --- a/cppuhelper/source/shlib.cxx +++ b/cppuhelper/source/shlib.cxx @@ -23,6 +23,12 @@ #include <cstdlib> #include <string_view> +#ifdef IOS +#include <premac.h> +#include <Foundation/Foundation.h> +#include <postmac.h> +#endif + #include <com/sun/star/loader/CannotActivateFactoryException.hpp> #include <com/sun/star/registry/CannotRegisterImplementationException.hpp> #include <com/sun/star/registry/XRegistryKey.hpp> @@ -267,6 +273,9 @@ void cppuhelper::detail::loadSharedLibComponentFactory( } if (fp == 0) { SAL_WARN("cppuhelper", "unknown factory name \"" << uri << "\""); +#ifdef IOS + NSLog(@"Unknown factory %s", uri.toUtf8().getStr()); +#endif throw css::loader::CannotActivateFactoryException( "unknown factory name \"" + uri + "\"", css::uno::Reference<css::uno::XInterface>()); @@ -287,6 +296,9 @@ void cppuhelper::detail::loadSharedLibComponentFactory( } } SAL_WARN("cppuhelper", "unknown constructor name \"" << constructor << "\""); +#ifdef IOS + NSLog(@"Unknown constructor %s", constructor.toUtf8().getStr()); +#endif throw css::loader::CannotActivateFactoryException( "unknown constructor name \"" + constructor + "\"", css::uno::Reference<css::uno::XInterface>()); |