]> git.saurik.com Git - wxWidgets.git/commitdiff
prevent linker from discarding wxStockGDIMac
authorPaul Cornett <paulcor@bullseye.com>
Tue, 22 Aug 2006 19:36:27 +0000 (19:36 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 22 Aug 2006 19:36:27 +0000 (19:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/app.cpp
src/mac/carbon/gdiobj.cpp

index 154369334d552aa03a7661534254c59dcbbfaae1..973bb8065df4799ad2d6fca2e5504e688d973331 100644 (file)
@@ -38,6 +38,7 @@
 #include "wx/tooltip.h"
 #include "wx/docview.h"
 #include "wx/filename.h"
 #include "wx/tooltip.h"
 #include "wx/docview.h"
 #include "wx/filename.h"
+#include "wx/link.h"
 
 #include <string.h>
 
 
 #include <string.h>
 
@@ -67,6 +68,9 @@
 #  include <Devices.h>
 #endif
 
 #  include <Devices.h>
 #endif
 
+// Keep linker from discarding wxStockGDIMac
+wxFORCE_LINK_MODULE(gdiobj)
+
 #if wxUSE_THREADS
 extern size_t g_numberOfThreads;
 #endif
 #if wxUSE_THREADS
 extern size_t g_numberOfThreads;
 #endif
index 436c1b612dd67925899f968bc933595e0f541e55..3e1b73d874e1d7eb5ff75d06e34c02502ef0ba9f 100644 (file)
 #endif
 
 #include "wx/module.h"
 #endif
 
 #include "wx/module.h"
+#include "wx/link.h"
 #include "wx/mac/private.h"
 
 #include "wx/mac/private.h"
 
+// Linker will discard entire object file without this
+wxFORCE_LINK_THIS_MODULE(gdiobj)
+
 class wxStockGDIMac: public wxStockGDI, public wxModule
 {
 public:
 class wxStockGDIMac: public wxStockGDI, public wxModule
 {
 public: