RetroPie / SDL-mirror

An unofficial, automated SDL2 and SDL1.2 HG mirror.
Other
6 stars 15 forks source link

gcc5 fix (Ubuntu 16.04 on ODROID-C1) #3

Closed hemi426 closed 7 years ago

hemi426 commented 7 years ago

Fix to enable SDL2.0.5+mali to build on Ubuntu 16.04 running on HardKernel ODROID-C1.

hemi426 commented 7 years ago

ISO C90 forbids mixed declarations and code in C, so this blows up when built with gcc5. Simple fix; please commit.

joolswills commented 7 years ago

Would be better to move just the declaration and leave the open where it is.

joolswills commented 7 years ago

I have applied a slightly different fix as mentioned. thanks for the heads up.