(Walter Roberson) writes:
[...]
> I note that your code is C99, not C89: you have a function call
> (to SDL_Init) before the declaration of SDL_Joystick *joy, which
> would not be valid in C89. The // comments are also not valid in C89
> but are a common extension. Please be aware that there are very few
> fully compliant "hosted" C99 implementations available, and it is fairly
> unlikely that you are using one of them. Because of the non-compliance
> of the environment, your code might do things that would not be expected
> according to the C99 standard, and there isn't much you can do about
> that except to study in detail exactly how your environment differs
> from a true C99 environment. It is safer to write in C89.
Given that the program appears to be Windows-specific, and given
Microsoft's apparent lack of interest in supporting C99, it's more
likely that the OP is using a C++ compiler.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.