]> git.saurik.com Git - wxWidgets.git/commitdiff
compile fix for GTK2 systems which have X11/extensions/xf86vmode.h
authorPaul Cornett <paulcor@bullseye.com>
Sun, 23 May 2010 16:31:33 +0000 (16:31 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Sun, 23 May 2010 16:31:33 +0000 (16:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/displayx11.cpp

index a6c294d5e2b81ea95aa42795bee98bb9f8a4278d..04c5f86218d81035cfd8b57cc03e96fdc9dc4da8 100644 (file)
@@ -62,9 +62,6 @@
         #include <X11/Xlibint.h>
 
         #include <X11/extensions/Xinerama.h>
-        #ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
-            #include <X11/extensions/xf86vmode.h>
-        #endif
     }
 
     typedef XineramaScreenInfo ScreenInfo;
@@ -222,6 +219,8 @@ wxDisplayImpl *wxDisplayFactoryX11::CreateDisplay(unsigned n)
 
 #ifdef HAVE_X11_EXTENSIONS_XF86VMODE_H
 
+#include <X11/extensions/xf86vmode.h>
+
 //
 //  See (http://www.xfree86.org/4.2.0/XF86VidModeDeleteModeLine.3.html) for more
 //  info about xf86 video mode extensions