X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51485b7601f6d01b5e7bf546e28ea7b3358f7a02..d122f8c745c618a36f492e14f1ca1fd7230c5c9f:/src/common/appcmn.cpp diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 162512f876..5c19be543e 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -502,6 +502,14 @@ void wxGUIAppTraitsBase::RemoveFromPendingDelete(wxObject *object) #include "wx/unix/gsockunx.h" #elif defined(__WINDOWS__) #include "wx/msw/gsockmsw.h" +#elif defined(__WXMAC__) + #include + #define OTUNIXERRORS 1 + #include + #include + #include + + #include "wx/mac/gsockmac.h" #else #error "Must include correct GSocket header here" #endif @@ -512,7 +520,7 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable() // 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 +#else // !__WXMAC__ static GSocketGUIFunctionsTable table = { _GSocket_GUI_Init, @@ -527,7 +535,7 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable() _GSocket_Disable_Events }; return &table; -#endif +#endif // __WXMAC__/!__WXMAC__ } #endif