]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/gdiobj.cpp
prevent linker from discarding wxStockGDIMac
[wxWidgets.git] / src / mac / carbon / gdiobj.cpp
index 436c1b612dd67925899f968bc933595e0f541e55..3e1b73d874e1d7eb5ff75d06e34c02502ef0ba9f 100644 (file)
 #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: