* -------------------------------------------------------------------------
*/
-#if defined(__GSOCKET_STANDALONE__) || defined(wxUSE_SOCKETS)
#ifndef __GSOCKET_STANDALONE__
-
#include "wx/setup.h"
+#endif
+
+#if wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__)
+
+
+#ifndef __GSOCKET_STANDALONE__
+
#include "wx/msw/gsockmsw.h"
#include "wx/gsocket.h"
-#define INSTANCE wxhInstance
+#define INSTANCE wxGetInstance()
#else
}
-#endif /* defined(__GSOCKET_STANDALONE__) || defined(wxUSE_SOCKETS) */
+#endif /* wxUSE_SOCKETS || defined(__GSOCKET_STANDALONE__) */