Add a dummy function if SDL doesn't have STDIO support

This commit is contained in:
Sam Lantinga
2009-12-15 05:34:58 +00:00
parent bb095c6df0
commit df50338fda
2 changed files with 10 additions and 0 deletions

View File

@@ -131,6 +131,9 @@ extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFile(const char *file,
#ifdef HAVE_STDIO_H
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp,
SDL_bool autoclose);
#else
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(void * fp,
SDL_bool autoclose);
#endif
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromMem(void *mem, int size);