ensure that gsockmsw.obj is linked in, it was optimized away by MSVC linker resulting in socket manager not being initialized

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-31 10:32:21 +00:00
parent f172cb8200
commit a3cf8dca33
2 changed files with 7 additions and 1 deletions

View File

@@ -58,6 +58,9 @@
#if wxUSE_SOCKETS
#include "wx/gsocket.h"
#include "wx/link.h"
wxFORCE_LINK_MODULE(gsockmsw)
#ifdef __WXWINCE__
#ifndef isdigit

View 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