Mercurial > sdl-ios-xcode
changeset 2161:e635db5b45ef
Oh yeah, they're boolean values...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 10 Jul 2007 05:29:56 +0000 |
parents | 00adbaed3910 |
children | 1d23870d8c49 |
files | include/SDL_rwops.h src/file/SDL_rwops.c |
diffstat | 2 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/include/SDL_rwops.h Tue Jul 10 05:25:19 2007 +0000 +++ b/include/SDL_rwops.h Tue Jul 10 05:29:56 2007 +0000 @@ -115,7 +115,8 @@ 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);
--- a/src/file/SDL_rwops.c Tue Jul 10 05:25:19 2007 +0000 +++ b/src/file/SDL_rwops.c Tue Jul 10 05:29:56 2007 +0000 @@ -124,7 +124,7 @@ 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 */ } @@ -455,7 +455,7 @@ #ifdef HAVE_STDIO_H SDL_RWops * -SDL_RWFromFP(FILE * fp, int autoclose) +SDL_RWFromFP(FILE * fp, SDL_bool autoclose) { SDL_RWops *rwops = NULL;