summaryrefslogtreecommitdiff
path: root/include/vcl/builderfactory.hxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-11-05 21:49:59 +0200
committerTor Lillqvist <tml@collabora.com>2018-11-05 22:01:31 +0200
commit9ddb1a12332cd1ac528b1e25d2414dbfe2088811 (patch)
treebffbc91b7cdd4388dc47541873988d3e76f166b6 /include/vcl/builderfactory.hxx
parent0cb0c7f02b745bc040c19aa26c6139dfc1833210 (diff)
Check explicitly for function names and link directly to them on iOS
When building the iOS app with optimisation (using the Release configurtaion), the linker will not include functions even if they have been marked with __attribute__ ((visibility("default"))). To get such a function included, you need an actual reference to it. Sure, I could probably do some other trick instead. Or I could use a table and loop here instead of a sequence of if statements. Later. Change-Id: I86fa38838f242fd1ac251da6e3885f5b166963d3
Diffstat (limited to 'include/vcl/builderfactory.hxx')
-rw-r--r--include/vcl/builderfactory.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/builderfactory.hxx b/include/vcl/builderfactory.hxx
index 4b8801341f49..0781726c0ffb 100644
--- a/include/vcl/builderfactory.hxx
+++ b/include/vcl/builderfactory.hxx
@@ -37,6 +37,9 @@
rRet = VclPtr<typeName>::Create(pParent,wb); \
}
+#define VCL_BUILDER_FACTORY_EXTERN(typeName) \
+ extern "C" void make##typeName(VclPtr<vcl::Window> & rRet, VclPtr<vcl::Window> & pParent, VclBuilder::stringmap & rMap)
+
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */