prevent linker from discarding wxStockGDIMac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-08-22 19:36:27 +00:00
parent 1f7c2c9a81
commit 2260bc5fb1
2 changed files with 8 additions and 0 deletions

View File

@@ -38,6 +38,7 @@
#include "wx/tooltip.h" #include "wx/tooltip.h"
#include "wx/docview.h" #include "wx/docview.h"
#include "wx/filename.h" #include "wx/filename.h"
#include "wx/link.h"
#include <string.h> #include <string.h>
@@ -67,6 +68,9 @@
# include <Devices.h> # include <Devices.h>
#endif #endif
// Keep linker from discarding wxStockGDIMac
wxFORCE_LINK_MODULE(gdiobj)
#if wxUSE_THREADS #if wxUSE_THREADS
extern size_t g_numberOfThreads; extern size_t g_numberOfThreads;
#endif #endif

View File

@@ -18,8 +18,12 @@
#endif #endif
#include "wx/module.h" #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 class wxStockGDIMac: public wxStockGDI, public wxModule
{ {
public: public: