From a04232b3a14dae1e255eabac5ba98e957adb730c Mon Sep 17 00:00:00 2001 From: eriksunden Date: Thu, 23 Feb 2017 23:31:37 +0100 Subject: [PATCH] Before C99 fix. --- tests/events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/events.c b/tests/events.c index 7e495305a..474a04795 100644 --- a/tests/events.c +++ b/tests/events.c @@ -489,7 +489,8 @@ static void joystick_callback(int joy, int event) static void touch_callback(GLFWwindow* window, GLFWtouch* touchPoints, int count) { printf("Priting info about all touch points"); - for (int i = 0; i < count; ++i) { + int i; + for (i = 0; i < count; ++i) { printf("%08x at %0.3f: Touch %i %s at position %0.3f %0.3f\n", counter++, glfwGetTime(),