glxgears / wglgears: avoid C99 "for" without explicit -std=
commitdb5ad06a346774a249b22797e660d55bde0d9571
authorJan Beich <jbeich@FreeBSD.org>
Sat, 12 Sep 2020 23:10:59 +0000 (12 23:10 +0000)
committerJan Beich <jbeich@FreeBSD.org>
Tue, 15 Sep 2020 18:12:46 +0000 (15 18:12 +0000)
treea38f50c453f22b4889b9fab56ddc9b0ace2dbbb0
parent846ec9bf933df27c2484bce550934b75830168d2
glxgears / wglgears: avoid C99 "for" without explicit -std=

GCC < 5 defaults to -std=gnu89, failing to build:

glxgears.c: In function 'init':
glxgears.c:413: error: 'for' loop initial declaration used outside C99 mode

Fixes: 8c73555b4dd5 ("glxgears / wglgears: adjust colors for sRGB")
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/wgl/wglgears.c
src/xdemos/glxgears.c