Patched test apps to compile with C89 compilers (thanks, Axel!).
Fixes Bugzilla #1772.
This commit is contained in:
parent
6432ccda7f
commit
f3d6be82af
2 changed files with 5 additions and 2 deletions
|
@ -36,6 +36,8 @@ print_devices(int iscapture)
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
int n;
|
||||||
|
|
||||||
/* Load the SDL library */
|
/* Load the SDL library */
|
||||||
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
|
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
|
||||||
fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
|
fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
|
||||||
|
@ -43,7 +45,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print available audio drivers */
|
/* Print available audio drivers */
|
||||||
int n = SDL_GetNumAudioDrivers();
|
n = SDL_GetNumAudioDrivers();
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
printf("No built-in audio drivers\n\n");
|
printf("No built-in audio drivers\n\n");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -42,13 +42,14 @@ main(int argc, char *argv[])
|
||||||
"NO",
|
"NO",
|
||||||
"hand",
|
"hand",
|
||||||
};
|
};
|
||||||
SDL_assert(SDL_arraysize(cursorNames) == SDL_NUM_SYSTEM_CURSORS);
|
|
||||||
|
|
||||||
int i, done;
|
int i, done;
|
||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
int system_cursor = -1;
|
int system_cursor = -1;
|
||||||
SDL_Cursor *cursor = NULL;
|
SDL_Cursor *cursor = NULL;
|
||||||
|
|
||||||
|
SDL_assert(SDL_arraysize(cursorNames) == SDL_NUM_SYSTEM_CURSORS);
|
||||||
|
|
||||||
/* Initialize test framework */
|
/* Initialize test framework */
|
||||||
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
|
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
|
||||||
if (!state) {
|
if (!state) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue