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/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
|
||||||
|
@@ -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:
|
||||||
|
Reference in New Issue
Block a user