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(),