#ifndef WX_PRECOMP
#include "wx/gdicmn.h"
+ #include "wx/module.h"
#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: