X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c90cc42e987809e59873d1fdb4630be71aa0a32a..1d6560d796aefb5dbdf217109767b1054c68c291:/src/msw/gsockmsw.cpp diff --git a/src/msw/gsockmsw.cpp b/src/msw/gsockmsw.cpp index 81affd4f96..df90c628ad 100644 --- a/src/msw/gsockmsw.cpp +++ b/src/msw/gsockmsw.cpp @@ -1,12 +1,19 @@ /* ------------------------------------------------------------------------- * Project: GSocket (Generic Socket) - * Name: gsockmsw.c + * Name: gsockmsw.cpp * Author: Guillermo Rodriguez Garcia * Purpose: GSocket GUI-specific MSW code * CVSID: $Id$ * ------------------------------------------------------------------------- */ +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + /* * TODO: for WinCE we need to replace WSAAsyncSelect * (Windows message-based notification of network events for a socket) @@ -15,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 @@ -55,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 @@ -67,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__ */ @@ -113,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];