#define __GSOCKET_H
#ifndef __GSOCKET_STANDALONE__
-#include "wx/setup.h"
-#include "wx/platform.h"
+#include "wx/defs.h"
#include "wx/dlimpexp.h" /* for WXDLLIMPEXP_NET */
GSOCK_WOULDBLOCK,
GSOCK_TIMEDOUT,
GSOCK_MEMERR,
- GSOCK_OPTERR,
+ GSOCK_OPTERR
} GSocketError;
/* See below for an explanation on how events work.
class GSocketGUIFunctionsTable
{
public:
+ // needed since this class declares virtual members
+ virtual ~GSocketGUIFunctionsTable() { }
virtual bool OnInit() = 0;
virtual void OnExit() = 0;
virtual bool CanUseEventLoop() = 0;
/* Sets GUI functions callbacks. Must be called *before* GSocket_Init
if the app uses async sockets. */
-void GSocket_SetGUIFunctions(struct GSocketGUIFunctionsTable *guifunc);
+void GSocket_SetGUIFunctions(GSocketGUIFunctionsTable *guifunc);
/* GSocket_Init() must be called at the beginning */
int GSocket_Init(void);