X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eccd1992237c9b8bbe02a9eda66b709fd7ecea73..b2c5f143fd7f9813735e977032d1102ef8606bc5:/src/msw/gsockmsw.c diff --git a/src/msw/gsockmsw.c b/src/msw/gsockmsw.c index 96b237f104..a51169eaf0 100644 --- a/src/msw/gsockmsw.c +++ b/src/msw/gsockmsw.c @@ -36,8 +36,8 @@ #endif #ifndef __GSOCKET_STANDALONE__ -#include "wx/defs.h" -#include "wx/setup.h" +# include "wx/platform.h" +# include "wx/setup.h" #endif #if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) @@ -86,7 +86,7 @@ HINSTANCE wxGetInstance(void); #define CLASSNAME TEXT("_GSocket_Internal_Window_Class") /* implemented in utils.cpp */ -extern HWND +extern WXDLLIMPEXP_BASE HWND wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc); /* Maximum number of different GSocket objects at a given time. @@ -112,7 +112,7 @@ static int firstAvailable; int _GSocket_GUI_Init(void) { - LPCTSTR pclassname; + static LPCTSTR pclassname = NULL; int i; /* Create internal window for event notifications */