Oh yeah, they're boolean values...
authorSam Lantinga <slouken@libsdl.org>
Tue, 10 Jul 2007 05:29:56 +0000
changeset 2161 e635db5b45ef
parent 2160 00adbaed3910
child 2162 1d23870d8c49
Oh yeah, they're boolean values...
include/SDL_rwops.h
src/file/SDL_rwops.c
--- 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;