Adjusted to handle different constness in older versions of iconv. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Fri, 30 Mar 2007 20:09:55 +0000
branchSDL-1.2
changeset 39286a62cbdd65f5
parent 3927 f86ced1837de
child 3929 56ec4d962487
Adjusted to handle different constness in older versions of iconv.

Fixes Bugzilla #419.
include/SDL_stdinc.h
     1.1 --- a/include/SDL_stdinc.h	Fri Mar 30 06:26:28 2007 +0000
     1.2 +++ b/include/SDL_stdinc.h	Fri Mar 30 20:09:55 2007 +0000
     1.3 @@ -561,12 +561,13 @@
     1.4  #define SDL_iconv_t     iconv_t
     1.5  #define SDL_iconv_open  iconv_open
     1.6  #define SDL_iconv_close iconv_close
     1.7 +extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
     1.8  #else
     1.9  typedef struct _SDL_iconv_t *SDL_iconv_t;
    1.10  extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode, const char *fromcode);
    1.11  extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd);
    1.12 +extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
    1.13  #endif
    1.14 -extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
    1.15  /* This function converts a string between encodings in one pass, returning a
    1.16     string that must be freed with SDL_free() or NULL on error.
    1.17  */