comparison include/SDL_rwops.h @ 1446:47bf1767c4ca

Date: Mon, 27 Feb 2006 02:17:29 +0100 From: "William Petiot [exoide]" Subject: Re: [SDL] cvs version: questions regarding HAVE_STDIO_H in standard w I managed to get a first implementation of it, which I tested for "simple" use with tests sample apps, they work ok. I think this needs more tests. Here is the diff against CVS/SDL12, attached.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 27 Feb 2006 03:48:48 +0000
parents d910939febfa
children 515df0086eb7
comparison
equal deleted inserted replaced
1445:0133f0ca5de7 1446:47bf1767c4ca
60 /* Close and free an allocated SDL_FSops structure */ 60 /* Close and free an allocated SDL_FSops structure */
61 int (SDLCALL *close)(struct SDL_RWops *context); 61 int (SDLCALL *close)(struct SDL_RWops *context);
62 62
63 Uint32 type; 63 Uint32 type;
64 union { 64 union {
65 #ifdef HAVE_STDIO_H 65
66 #ifdef HAVE_STDIO_H
66 struct { 67 struct {
67 int autoclose; 68 int autoclose;
68 FILE *fp; 69 FILE *fp;
69 } stdio; 70 } stdio;
71 #else
72 #ifdef __WIN32__
73 struct {
74 void* h;
75 int autoclose;
76 int append;
77 } win32io;
78 #endif
70 #endif 79 #endif
71 struct { 80 struct {
72 Uint8 *base; 81 Uint8 *base;
73 Uint8 *here; 82 Uint8 *here;
74 Uint8 *stop; 83 Uint8 *stop;