]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/x11/display_platform.h
Fix build with XRandR headers not installed
[libs/gui.git] / source / graphics / x11 / display_platform.h
index 8db3e98e8f79eab86f4d3a6aba6a8422aab9cae6..3a213c009eaa7004cf98e24286b4fe5d63621e15 100644 (file)
@@ -2,14 +2,21 @@
 #define MSP_GRAPHICS_DISPLAY_PLATFORM_H_
 
 #include <X11/Xlib.h>
+#ifdef WITH_XRANDR
 #include <X11/extensions/Xrandr.h>
+#endif
 
 namespace Msp {
 namespace Graphics {
 
 typedef ::Display *DisplayHandle;
+#ifdef WITH_XRANDR
 typedef RROutput MonitorHandle;
 typedef RRMode ModeHandle;
+#else
+typedef int MonitorHandle;
+typedef int ModeHandle;
+#endif
 
 } // namespace Graphics
 } // namespace Msp