X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b46b1d59d6f69ad80dcf5955375578a6504d100a..710b82f34da942186fc816a4b0d99962140c1ac3:/include/wx/unix/apptrait.h diff --git a/include/wx/unix/apptrait.h b/include/wx/unix/apptrait.h index aa8a3b0f83..8e1d0d73c9 100644 --- a/include/wx/unix/apptrait.h +++ b/include/wx/unix/apptrait.h @@ -19,7 +19,9 @@ class WXDLLEXPORT wxConsoleAppTraits : public wxConsoleAppTraitsBase { public: - virtual wxEventLoop *CreateEventLoop(); +#if wxUSE_CONSOLE_EVENTLOOP + virtual wxEventLoopBase *CreateEventLoop(); +#endif // wxUSE_CONSOLE_EVENTLOOP virtual bool CreateEndProcessPipe(wxExecuteData& execData); virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd); virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData); @@ -34,7 +36,7 @@ public: class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase { public: - virtual wxEventLoop *CreateEventLoop(); + virtual wxEventLoopBase *CreateEventLoop(); virtual bool CreateEndProcessPipe(wxExecuteData& execData); virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd); virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData); @@ -43,7 +45,7 @@ public: virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); #endif -#if defined(__WXMAC__) || defined(__WXCOCOA__) +#if (defined(__WXMAC__) || defined(__WXCOCOA__)) && wxUSE_STDPATHS virtual wxStandardPathsBase& GetStandardPaths(); #endif virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const;