]> git.saurik.com Git - wxWidgets.git/commitdiff
added #ifdef __X__ forgotten in last commit
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 23:21:56 +0000 (23:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 15 Apr 2007 23:21:56 +0000 (23:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/utils.h

index d0eb5286dd8111856cc7abd2ed0b12eba45df271..40e742482ccc38dd64e5ac913b82ecbdd22ea9f2 100644 (file)
@@ -656,9 +656,11 @@ void WXDLLEXPORT wxGetMousePosition( int* x, int* y );
 #endif // MSW
 
 // ----------------------------------------------------------------------------
 #endif // MSW
 
 // ----------------------------------------------------------------------------
-// Display and colorss (X only)
+// X11 Display access
 // ----------------------------------------------------------------------------
 
 // ----------------------------------------------------------------------------
 
+#if defined(__X__) || defined(__WXGTK__)
+
 #ifdef __WXGTK__
     void *wxGetDisplay();
 #endif
 #ifdef __WXGTK__
     void *wxGetDisplay();
 #endif
@@ -675,6 +677,8 @@ inline struct _XDisplay *wxGetX11Display()
     return (_XDisplay *)wxGetDisplay();
 }
 
     return (_XDisplay *)wxGetDisplay();
 }
 
+#endif // X11 || wxGTK
+
 #endif // wxUSE_GUI
 
 // ----------------------------------------------------------------------------
 #endif // wxUSE_GUI
 
 // ----------------------------------------------------------------------------