#include "wx/apptrait.h"
#include "wx/thread.h"
#include "wx/dynlib.h"
+#include "wx/link.h"
#ifdef __WXWINCE__
/*
// dependencies on it for all the application using wx even if they don't use
// sockets
#ifdef __WXWINCE__
- #define WINSOCK_DLL_NAME _T("ws2.dll")
+ #define WINSOCK_DLL_NAME wxT("ws2.dll")
#else
- #define WINSOCK_DLL_NAME _T("wsock32.dll")
+ #define WINSOCK_DLL_NAME wxT("wsock32.dll")
#endif
gs_wsock32dll.Load(WINSOCK_DLL_NAME, wxDL_VERBATIM | wxDL_QUIET);
}
} gs_managerSetter;
+// see the relative linker macro in socket.cpp
+wxFORCE_LINK_THIS_MODULE( mswsocket );
+
// ============================================================================
// wxSocketImpl implementation
// ============================================================================
-/* static */
-wxSocketImpl *wxSocketImpl::Create(wxSocketBase& wxsocket)
-{
- return new wxSocketImplMSW(wxsocket);
-}
-
void wxSocketImplMSW::DoClose()
{
wxSocketManager::Get()->Uninstall_Callback(this);