Mercurial > sdl-ios-xcode
comparison src/file/SDL_rwops.c @ 3564:d264d99576c1
Add a dummy function if SDL doesn't have STDIO support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 15 Dec 2009 05:34:58 +0000 |
parents | 5d7ef5970073 |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3563:d3a8bb6a37c1 | 3564:d264d99576c1 |
---|---|
495 rwops->hidden.stdio.fp = fp; | 495 rwops->hidden.stdio.fp = fp; |
496 rwops->hidden.stdio.autoclose = autoclose; | 496 rwops->hidden.stdio.autoclose = autoclose; |
497 } | 497 } |
498 return (rwops); | 498 return (rwops); |
499 } | 499 } |
500 #else | |
501 SDL_RWops * | |
502 SDL_RWFromFP(void * fp, SDL_bool autoclose) | |
503 { | |
504 SDL_SetError("SDL not compiled with stdio support"); | |
505 return NULL; | |
506 } | |
500 #endif /* HAVE_STDIO_H */ | 507 #endif /* HAVE_STDIO_H */ |
501 | 508 |
502 SDL_RWops * | 509 SDL_RWops * |
503 SDL_RWFromMem(void *mem, int size) | 510 SDL_RWFromMem(void *mem, int size) |
504 { | 511 { |