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