~pali/mesa/mesa-demos

Viewing all changes in revision 3837.

  • Committer: Jan Beich
  • Date: 2020-09-15 18:12:46 UTC
  • Revision ID: git-v1:db5ad06a346774a249b22797e660d55bde0d9571
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: