X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4e83f385a58f00b1f97315ebd80f380d16ae472..59953bf4ba167311fb0cd2c2c0f3d5d0475b98c8:/include/wx/utils.h 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 // ----------------------------------------------------------------------------