From db7b486f8818ce99711f281216efb49e52c5d0b5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 26 Nov 2012 21:16:20 +0200 Subject: [PATCH] Use the weak attribute for iOS, too Change-Id: I090da1c6c9e48ef12f2a168eddb1a2cb91a8f533 --- idl/source/objects/types.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()