From: Stefan Neis Date: Sun, 23 Mar 2008 14:41:14 +0000 (+0000) Subject: Compilation fix (CreateTimerImpl is taken from timerunx.cpp, so not inline). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5c80fea840f43976c0903a0dd6f87f046d09d555 Compilation fix (CreateTimerImpl is taken from timerunx.cpp, so not inline). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/os2/apptrait.h b/include/wx/os2/apptrait.h index cfd7acce88..e179703374 100644 --- a/include/wx/os2/apptrait.h +++ b/include/wx/os2/apptrait.h @@ -19,9 +19,11 @@ class WXDLLIMPEXP_BASE wxConsoleAppTraits : public wxConsoleAppTraitsBase { public: +#if wxUSE_CONSOLE_EVENTLOOP virtual wxEventLoopBase *CreateEventLoop(); +#endif // wxUSE_CONSOLE_EVENTLOOP #if wxUSE_TIMER - virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) { return NULL; }; + virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer); #endif }; diff --git a/include/wx/os2/private.h b/include/wx/os2/private.h index 6e8ffebd53..685022f9f6 100644 --- a/include/wx/os2/private.h +++ b/include/wx/os2/private.h @@ -411,10 +411,11 @@ WXDLLEXPORT extern bool wxCheckWindowWndProc( WXHWND hWnd WXDLLEXPORT extern wxBitmap wxDisableBitmap( const wxBitmap& rBmp ,long lColor ); - +#if wxUSE_GUI #include "wx/colour.h" WXDLLEXPORT extern COLORREF wxColourToRGB(const wxColour& rColor); +#endif #endif // __WXPM__