Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Patched test apps to compile with C89 compilers (thanks, Axel!).
 Fixes Bugzilla #1772.
  • Loading branch information
icculus committed Mar 30, 2013
1 parent 3acf176 commit 06ebb8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion test/testaudioinfo.c
Expand Up @@ -36,14 +36,16 @@ print_devices(int iscapture)
int
main(int argc, char **argv)
{
int n;

/* Load the SDL library */
if (SDL_Init(SDL_INIT_AUDIO) < 0) {
fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
return (1);
}

/* Print available audio drivers */
int n = SDL_GetNumAudioDrivers();
n = SDL_GetNumAudioDrivers();
if (n == 0) {
printf("No built-in audio drivers\n\n");
} else {
Expand Down
3 changes: 2 additions & 1 deletion test/testwm2.c
Expand Up @@ -42,13 +42,14 @@ main(int argc, char *argv[])
"NO",
"hand",
};
SDL_assert(SDL_arraysize(cursorNames) == SDL_NUM_SYSTEM_CURSORS);

int i, done;
SDL_Event event;
int system_cursor = -1;
SDL_Cursor *cursor = NULL;

SDL_assert(SDL_arraysize(cursorNames) == SDL_NUM_SYSTEM_CURSORS);

/* Initialize test framework */
state = SDLTest_CommonCreateState(argv, SDL_INIT_VIDEO);
if (!state) {
Expand Down

0 comments on commit 06ebb8c

Please sign in to comment.