From e4e83f385a58f00b1f97315ebd80f380d16ae472 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 15 Apr 2007 22:54:36 +0000 Subject: [PATCH] added wxGetX11Display() returning the pointer of the correct type, unlike the old wxGetDisplay() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/utils.h | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/include/wx/utils.h b/include/wx/utils.h index a7d9a387a8..d0eb5286dd 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -669,18 +669,11 @@ void WXDLLEXPORT wxGetMousePosition( int* x, int* y ); WXDLLIMPEXP_CORE wxString wxGetDisplayName(); #endif // X or GTK+ -#ifdef __X__ - -#ifdef __VMS__ // Xlib.h for VMS is not (yet) compatible with C++ - // The resulting warnings are switched off here -#pragma message disable nosimpint -#endif -// #include -#ifdef __VMS__ -#pragma message enable nosimpint -#endif - -#endif //__X__ +// use this function instead of the functions above in implementation code +inline struct _XDisplay *wxGetX11Display() +{ + return (_XDisplay *)wxGetDisplay(); +} #endif // wxUSE_GUI -- 2.45.2