X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ef76cf4c6591148a7f588cd6b57dc3a0b1c126ab..76fae052f14db3c4c8a3d233fce0074ab25d4789:/src/common/appcmn.cpp diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 926104d482..5c19be543e 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -323,7 +323,6 @@ bool wxAppBase::ProcessIdle() wxIdleEvent event; bool needMore = FALSE; wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst(); - node = wxTopLevelWindows.GetFirst(); while (node) { wxWindow* win = node->GetData(); @@ -503,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 @@ -513,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, @@ -528,7 +535,7 @@ GSocketGUIFunctionsTable* wxGUIAppTraitsBase::GetSocketGUIFunctionsTable() _GSocket_Disable_Events }; return &table; -#endif +#endif // __WXMAC__/!__WXMAC__ } #endif