include/SDL_rwops.h
changeset 930 02759105b989
parent 769 b8d311d90021
child 1312 c9b51268668f
     1.1 --- a/include/SDL_rwops.h	Wed Aug 18 21:41:39 2004 +0000
     1.2 +++ b/include/SDL_rwops.h	Fri Aug 20 18:57:01 2004 +0000
     1.3 @@ -49,22 +49,22 @@
     1.4  		SEEK_SET, SEEK_CUR, SEEK_END
     1.5  	   Returns the final offset in the data source.
     1.6  	 */
     1.7 -	int (*seek)(struct SDL_RWops *context, int offset, int whence);
     1.8 +	int (SDLCALL *seek)(struct SDL_RWops *context, int offset, int whence);
     1.9  
    1.10  	/* Read up to 'num' objects each of size 'objsize' from the data
    1.11  	   source to the area pointed at by 'ptr'.
    1.12  	   Returns the number of objects read, or -1 if the read failed.
    1.13  	 */
    1.14 -	int (*read)(struct SDL_RWops *context, void *ptr, int size, int maxnum);
    1.15 +	int (SDLCALL *read)(struct SDL_RWops *context, void *ptr, int size, int maxnum);
    1.16  
    1.17  	/* Write exactly 'num' objects each of size 'objsize' from the area
    1.18  	   pointed at by 'ptr' to data source.
    1.19  	   Returns 'num', or -1 if the write failed.
    1.20  	 */
    1.21 -	int (*write)(struct SDL_RWops *context, const void *ptr, int size, int num);
    1.22 +	int (SDLCALL *write)(struct SDL_RWops *context, const void *ptr, int size, int num);
    1.23  
    1.24  	/* Close and free an allocated SDL_FSops structure */
    1.25 -	int (*close)(struct SDL_RWops *context);
    1.26 +	int (SDLCALL *close)(struct SDL_RWops *context);
    1.27  
    1.28  	Uint32 type;
    1.29  	union {