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:
@@ -38,6 +38,7 @@
|
||||
#include "wx/tooltip.h"
|
||||
#include "wx/docview.h"
|
||||
#include "wx/filename.h"
|
||||
#include "wx/link.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@@ -67,6 +68,9 @@
|
||||
# include <Devices.h>
|
||||
#endif
|
||||
|
||||
// Keep linker from discarding wxStockGDIMac
|
||||
wxFORCE_LINK_MODULE(gdiobj)
|
||||
|
||||
#if wxUSE_THREADS
|
||||
extern size_t g_numberOfThreads;
|
||||
#endif
|
||||
|
@@ -18,8 +18,12 @@
|
||||
#endif
|
||||
|
||||
#include "wx/module.h"
|
||||
#include "wx/link.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:
|
||||
|
Reference in New Issue
Block a user