Prefer the raw Win32 API over stdio for file RWops

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401451
This commit is contained in:
Sam Lantinga 2006-02-27 04:16:44 +00:00
parent ec48a1ec62
commit cbc10a962d
2 changed files with 73 additions and 95 deletions

View file

@ -62,20 +62,18 @@ typedef struct SDL_RWops {
Uint32 type;
union {
#ifdef __WIN32__
struct {
int autoclose;
int append;
void* h;
} win32io;
#endif
#ifdef HAVE_STDIO_H
struct {
int autoclose;
FILE *fp;
} stdio;
#else
#ifdef __WIN32__
struct {
void* h;
int autoclose;
int append;
} win32io;
#endif
#endif
struct {
Uint8 *base;