Prefer the raw Win32 API over stdio for file RWops

This commit is contained in:
Sam Lantinga
2006-02-27 04:16:44 +00:00
parent a85789aa95
commit 3d7fe80708
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;