summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--idl/source/objects/types.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index e6cc6295832b..2ce42b7c4d47 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -1410,7 +1410,7 @@ void SvMetaType::WriteSfxItem(
// write the implementation part
rOutStm << "#ifdef SFX_TYPEMAP" << endl
- << "#if defined(DISABLE_DYNLOADING) && defined(ANDROID)" << endl
+ << "#if defined(DISABLE_DYNLOADING) && (defined(ANDROID) || defined(IOS))" << endl
<< "__attribute__((__weak__))" << endl
<< "#endif" << endl
<< aTypeName.getStr() << aVarName.getStr()