From 1036d8e8085fb1c8b9f0409ed1c2b63d7a049f10 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 6 Oct 2011 23:53:11 +0200 Subject: [PATCH] Restored dropped guards for RandR-specific function. --- src/x11_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/x11_monitor.c b/src/x11_monitor.c index 50c142d4..e827fb35 100644 --- a/src/x11_monitor.c +++ b/src/x11_monitor.c @@ -38,6 +38,7 @@ ////// GLFW platform API ////// ////////////////////////////////////////////////////////////////////////// +#if defined (_GLFW_HAS_XRANDR) _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, XRROutputInfo* outputInfo, XRRCrtcInfo* crtcInfo) @@ -58,6 +59,7 @@ _GLFWmonitor** _glfwCreateMonitor(_GLFWmonitor** current, (*current)->X11.output = outputInfo; return &((*current)->next); } +#endif /*_GLFW_HAS_XRANDR*/ _GLFWmonitor* _glfwDestroyMonitor(_GLFWmonitor* monitor) {