X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/79630806b65160fe7a433f243a6aa9b55e690aec..8ac8dba00c38e34f3b69d4199366c89bf19e2cd8:/src/msw/gsockmsw.cpp diff --git a/src/msw/gsockmsw.cpp b/src/msw/gsockmsw.cpp index 13c14fb687..df90c628ad 100644 --- a/src/msw/gsockmsw.cpp +++ b/src/msw/gsockmsw.cpp @@ -7,14 +7,6 @@ * ------------------------------------------------------------------------- */ -// ============================================================================ -// declarations -// ============================================================================ - -// ---------------------------------------------------------------------------- -// headers -// ---------------------------------------------------------------------------- - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -30,10 +22,6 @@ * using select() and sends a message to the main thread. */ -/* - * PLEASE don't put C++ comments here - this is a C source file. - */ - /* including rasasync.h (included from windows.h itself included from * wx/setup.h and/or winsock.h results in this warning for * RPCNOTIFICATION_ROUTINE @@ -70,7 +58,7 @@ #include "wx/msw/gsockmsw.h" #include "wx/gsocket.h" -extern "C" HINSTANCE wxGetInstance(void); +extern "C" WXDLLIMPEXP_BASE HINSTANCE wxGetInstance(void); #define INSTANCE wxGetInstance() #else @@ -82,6 +70,7 @@ extern "C" HINSTANCE wxGetInstance(void); * be available and it must contain the app's instance * handle. */ +extern HINSTANCE hInst; #define INSTANCE hInst #endif /* __GSOCKET_STANDALONE__ */ @@ -128,7 +117,6 @@ LRESULT CALLBACK _GSocket_Internal_WinProc(HWND, UINT, WPARAM, LPARAM); /* Global variables */ -extern HINSTANCE INSTANCE; static HWND hWin; static CRITICAL_SECTION critical; static GSocket* socketList[MAXSOCKETS];