]> git.saurik.com Git - wxWidgets.git/commitdiff
ensure that gsockmsw.obj is linked in, it was optimized away by MSVC linker resulting...
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Dec 2007 10:32:21 +0000 (10:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Dec 2007 10:32:21 +0000 (10:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/gsocket.cpp
src/msw/gsockmsw.cpp

index 18d83b0434af3025c983ffa98d3e03d0a2250a7a..2830549071d8da88cca57b19743582b102da8b62 100644 (file)
@@ -58,6 +58,9 @@
 #if wxUSE_SOCKETS
 
 #include "wx/gsocket.h"
+#include "wx/link.h"
+
+wxFORCE_LINK_MODULE(gsockmsw)
 
 #ifdef __WXWINCE__
 #ifndef isdigit
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