Minor fix for gcc-2.x building

in src/video/directfb/SDL_DirectFB_video.c, some variables are not declared at
the beginning of scope … newer gcc’s will accept this, but gcc-2.x does not

find attached a simple patch by Matt Taylor to resolve this
http://bugs.gentoo.org/show_bug.cgi?id=75392
-mike
-------------- next part --------------
A non-text attachment was scrubbed…
Name: gcc2.patch
Type: text/x-diff
Size: 1039 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20041224/b6261368/attachment.patch

Unless partial C99 is a new requirement for SDL, I think it’s SDL that
needs a patch; not the compiler…

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Saturday 25 December 2004 05.32, Mike Frysinger wrote:

in src/video/directfb/SDL_DirectFB_video.c, some variables are not
declared at the beginning of scope … newer gcc’s will accept
this, but gcc-2.x does not

find attached a simple patch by Matt Taylor to resolve this
http://bugs.gentoo.org/show_bug.cgi?id=75392

not quite sure why you say this considering the patch i posted was against SDL
and not gcc
-mikeOn Saturday 25 December 2004 04:06 am, David Olofson wrote:

Unless partial C99 is a new requirement for SDL, I think it’s SDL that
needs a patch; not the compiler…

Could be that it was way past bed time… hehe

//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
http://olofson.nethttp://www.reologica.se —On Saturday 25 December 2004 16.42, Mike Frysinger wrote:

On Saturday 25 December 2004 04:06 am, David Olofson wrote:

Unless partial C99 is a new requirement for SDL, I think it’s SDL
that needs a patch; not the compiler…

not quite sure why you say this considering the patch i posted was
against SDL and not gcc

in src/video/directfb/SDL_DirectFB_video.c, some variables are not declared at
the beginning of scope … newer gcc’s will accept this, but gcc-2.x does not

find attached a simple patch by Matt Taylor to resolve this
http://bugs.gentoo.org/show_bug.cgi?id=75392

Thanks, this patch is in CVS.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment