On 12/19/15 11:11 PM, Evan Hanson wrote:
FWIW, the sdl2 egg fails to build with gcc-4.6:
In file included from sdl2-internals.c:14:0:
lib/sdl2-internals/custom-functions.c: In function
‘chickenSDL2_RotateSurface90’:
lib/sdl2-internals/custom-functions.c:212:3: error: ‘for’ loop initial
declarations are only allowed in C99 mode
lib/sdl2-internals/custom-functions.c:212:3: note: use option -std=c99 or
-std=gnu99 to compile your code
lib/sdl2-internals/custom-functions.c:213:5: error: ‘for’ loop initial
declarations are only allowed in C99 mode
lib/sdl2-internals/custom-functions.c: In function
‘chickenSDL2_FlipSurface’:
lib/sdl2-internals/custom-functions.c:267:3: error: ‘for’ loop initial
declarations are only allowed in C99 mode
lib/sdl2-internals/custom-functions.c:268:5: error: ‘for’ loop initial
declarations are only allowed in C99 mode
Building with gcc-5 instead worked fine. The sdl2-image project didn't
have this problem.
Thanks for this report. I have fixed the issue by changing the code to
declare the variables before the for loop.
I will make a 0.1.1 bugfix release in a few days, after more people have
had some time to maybe report some more bugs. :)
For future reference, here is the issue I filed on your behalf:
https://gitlab.com/chicken-sdl2/chicken-sdl2/issues/29
Thanks again!
- John Croisant
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users