From: Vadim Zeitlin Date: Sun, 15 Apr 2007 23:21:56 +0000 (+0000) Subject: added #ifdef __X__ forgotten in last commit X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dc2819335f5c717ba92c76df4a51591fc4cf5143?ds=sidebyside added #ifdef __X__ forgotten in last commit git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/utils.h b/include/wx/utils.h index d0eb5286dd..40e742482c 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -656,9 +656,11 @@ void WXDLLEXPORT wxGetMousePosition( int* x, int* y ); #endif // MSW // ---------------------------------------------------------------------------- -// Display and colorss (X only) +// X11 Display access // ---------------------------------------------------------------------------- +#if defined(__X__) || defined(__WXGTK__) + #ifdef __WXGTK__ void *wxGetDisplay(); #endif @@ -675,6 +677,8 @@ inline struct _XDisplay *wxGetX11Display() return (_XDisplay *)wxGetDisplay(); } +#endif // X11 || wxGTK + #endif // wxUSE_GUI // ----------------------------------------------------------------------------