From: Vadim Zeitlin Date: Tue, 15 Feb 2005 00:02:09 +0000 (+0000) Subject: remove INSTANCE declaration which uses wrong dll export convention and is unneeded... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/854bac91fd945211a383fa5a62f59705b4643245 remove INSTANCE declaration which uses wrong dll export convention and is unneeded anyhow git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/gsockmsw.cpp b/src/msw/gsockmsw.cpp index 73fe0f50a8..6c8f3401a0 100644 --- a/src/msw/gsockmsw.cpp +++ b/src/msw/gsockmsw.cpp @@ -63,7 +63,7 @@ extern "C" WXDLLIMPEXP_BASE HINSTANCE wxGetInstance(void); #define INSTANCE wxGetInstance() -#else +#else /* __GSOCKET_STANDALONE__ */ #include "gsockmsw.h" #include "gsocket.h" @@ -72,10 +72,10 @@ extern "C" WXDLLIMPEXP_BASE HINSTANCE wxGetInstance(void); * be available and it must contain the app's instance * handle. */ - extern HINSTANCE hInst; +extern HINSTANCE hInst; #define INSTANCE hInst -#endif /* __GSOCKET_STANDALONE__ */ +#endif /* !__GSOCKET_STANDALONE__/__GSOCKET_STANDALONE__ */ #ifndef __WXWINCE__ #include @@ -132,7 +132,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];