From 14a39351b319e9d4acde63e92117ab4492d4e4e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 10 Aug 2003 15:58:19 +0000 Subject: [PATCH] wxMac fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/appcmn.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index fdf85e5b67..37da88bccf 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -503,14 +503,17 @@ void wxGUIAppTraitsBase::RemoveFromPendingDelete(wxObject *object) #include "wx/unix/gsockunx.h" #elif defined(__WINDOWS__) #include "wx/msw/gsockmsw.h" -#elif defined(__MAC__) - #include "wx/mac/gsockmac.h" #else #error "Must include correct GSocket header here" #endif 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 = { _GSocket_GUI_Init, @@ -525,6 +528,7 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable() _GSocket_Disable_Events }; return &table; +#endif } #endif -- 2.50.0