]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gsockmsw.cpp
ensure that gsockmsw.obj is linked in, it was optimized away by MSVC linker resulting...
[wxWidgets.git] / src / msw / gsockmsw.cpp
index 79969ac301e8b3a776ca764bd99875bb357d3ca7..489feff570b45f59d255b128d01ac6ddd446dde3 100644 (file)
@@ -38,6 +38,9 @@
 
 #include "wx/gsocket.h"
 #include "wx/apptrait.h"
+#include "wx/link.h"
+
+wxFORCE_LINK_THIS_MODULE(gsockmsw)
 
 extern "C" WXDLLIMPEXP_BASE HINSTANCE wxGetInstance();
 #define INSTANCE wxGetInstance()
@@ -470,6 +473,6 @@ static struct ManagerSetter
         static GSocketMSWManager s_manager;
         wxAppTraits::SetDefaultSocketManager(&s_manager);
     }
-} gsm_managerSetter;
+} gs_managerSetter;
 
 #endif  // wxUSE_SOCKETS