include/SDL_rwops.h
changeset 3253 5d7ef5970073
parent 2859 99210400e8b9
child 3407 d3baf5ac4e37
     1.1 --- a/include/SDL_rwops.h	Sat Sep 05 21:31:50 2009 +0000
     1.2 +++ b/include/SDL_rwops.h	Sat Sep 05 23:37:35 2009 +0000
     1.3 @@ -82,8 +82,8 @@
     1.4              struct
     1.5              {
     1.6                  void *data;
     1.7 -                int size;
     1.8 -                int left;
     1.9 +                size_t size;
    1.10 +                size_t left;
    1.11              } buffer;
    1.12          } win32io;
    1.13  #endif
    1.14 @@ -147,12 +147,12 @@
    1.15  extern DECLSPEC Uint64 SDLCALL SDL_ReadBE64(SDL_RWops * src);
    1.16  
    1.17  /* Write an item of native format to the specified endianness */
    1.18 -extern DECLSPEC int SDLCALL SDL_WriteLE16(SDL_RWops * dst, Uint16 value);
    1.19 -extern DECLSPEC int SDLCALL SDL_WriteBE16(SDL_RWops * dst, Uint16 value);
    1.20 -extern DECLSPEC int SDLCALL SDL_WriteLE32(SDL_RWops * dst, Uint32 value);
    1.21 -extern DECLSPEC int SDLCALL SDL_WriteBE32(SDL_RWops * dst, Uint32 value);
    1.22 -extern DECLSPEC int SDLCALL SDL_WriteLE64(SDL_RWops * dst, Uint64 value);
    1.23 -extern DECLSPEC int SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);
    1.24 +extern DECLSPEC size_t SDLCALL SDL_WriteLE16(SDL_RWops * dst, Uint16 value);
    1.25 +extern DECLSPEC size_t SDLCALL SDL_WriteBE16(SDL_RWops * dst, Uint16 value);
    1.26 +extern DECLSPEC size_t SDLCALL SDL_WriteLE32(SDL_RWops * dst, Uint32 value);
    1.27 +extern DECLSPEC size_t SDLCALL SDL_WriteBE32(SDL_RWops * dst, Uint32 value);
    1.28 +extern DECLSPEC size_t SDLCALL SDL_WriteLE64(SDL_RWops * dst, Uint64 value);
    1.29 +extern DECLSPEC size_t SDLCALL SDL_WriteBE64(SDL_RWops * dst, Uint64 value);
    1.30  
    1.31  
    1.32  /* Ends C function definitions when using C++ */