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

Commit

Permalink
Oh yeah, they're boolean values...
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 10, 2007
1 parent fde6d9a commit ba28214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/SDL_rwops.h
Expand Up @@ -115,7 +115,8 @@ extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file,
const char *mode);

#ifdef HAVE_STDIO_H
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp, int autoclose);
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
SDL_bool autoclose);
#endif

extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size);
Expand Down
4 changes: 2 additions & 2 deletions src/file/SDL_rwops.c
Expand Up @@ -124,7 +124,7 @@ win32_file_open(SDL_RWops * context, const char *filename, const char *mode)
return -2; /* failed (CreateFile) */
}
context->hidden.win32io.h = h;
context->hidden.win32io.append = a_mode;
context->hidden.win32io.append = a_mode ? SDL_TRUE : SDL_FALSE;

return 0; /* ok */
}
Expand Down Expand Up @@ -455,7 +455,7 @@ SDL_RWFromFile(const char *file, const char *mode)

#ifdef HAVE_STDIO_H
SDL_RWops *
SDL_RWFromFP(FILE * fp, int autoclose)
SDL_RWFromFP(FILE * fp, SDL_bool autoclose)
{
SDL_RWops *rwops = NULL;

Expand Down

0 comments on commit ba28214

Please sign in to comment.