wxMac fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -503,14 +503,17 @@ void wxGUIAppTraitsBase::RemoveFromPendingDelete(wxObject *object)
|
|||||||
#include "wx/unix/gsockunx.h"
|
#include "wx/unix/gsockunx.h"
|
||||||
#elif defined(__WINDOWS__)
|
#elif defined(__WINDOWS__)
|
||||||
#include "wx/msw/gsockmsw.h"
|
#include "wx/msw/gsockmsw.h"
|
||||||
#elif defined(__MAC__)
|
|
||||||
#include "wx/mac/gsockmac.h"
|
|
||||||
#else
|
#else
|
||||||
#error "Must include correct GSocket header here"
|
#error "Must include correct GSocket header here"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
|
GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
|
||||||
{
|
{
|
||||||
|
#ifdef __MAC__
|
||||||
|
// NB: wxMac does not have any GUI-specific functions in gsocket.c and
|
||||||
|
// so it doesn't need this table at all
|
||||||
|
return NULL;
|
||||||
|
#else
|
||||||
static GSocketGUIFunctionsTable table =
|
static GSocketGUIFunctionsTable table =
|
||||||
{
|
{
|
||||||
_GSocket_GUI_Init,
|
_GSocket_GUI_Init,
|
||||||
@@ -525,6 +528,7 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable()
|
|||||||
_GSocket_Disable_Events
|
_GSocket_Disable_Events
|
||||||
};
|
};
|
||||||
return &table;
|
return &table;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user