]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxGetX11Display() returning the pointer of the correct type, unlike the old...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 22:54:36 +0000 (22:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 22:54:36 +0000 (22:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/utils.h

index a7d9a387a83b91c829eef5fac8049d8a56bee1b4..d0eb5286dd8111856cc7abd2ed0b12eba45df271 100644 (file)
@@ -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 <X11/Xlib.h>
-#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