From 742a57723065d7370c5ca96a8c97d0dcb5184e6e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 9 Jun 2013 11:45:26 +0200 Subject: [PATCH] Removed C99-ism. --- src/monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/monitor.c b/src/monitor.c index 7a70676e..97aa9ba6 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -78,11 +78,12 @@ static int compareVideoModes(const void* firstPtr, const void* secondPtr) static int refreshVideoModes(_GLFWmonitor* monitor) { int modeCount; + GLFWvidmode* modes; if (monitor->modes) return GL_TRUE; - GLFWvidmode* modes = _glfwPlatformGetVideoModes(monitor, &modeCount); + modes = _glfwPlatformGetVideoModes(monitor, &modeCount); if (!modes) return GL_FALSE;