include/SDL_stdinc.h
changeset 2135 0313af081a84
parent 2111 874162355be5
child 2142 ca80c942e69c
     1.1 --- a/include/SDL_stdinc.h	Wed Jun 27 10:17:35 2007 +0000
     1.2 +++ b/include/SDL_stdinc.h	Thu Jun 28 06:57:08 2007 +0000
     1.3 @@ -640,24 +640,21 @@
     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,
     1.8 -                                         size_t * inbytesleft, char **outbuf,
     1.9 -                                         size_t * outbytesleft);
    1.10  #else
    1.11  typedef struct _SDL_iconv_t *SDL_iconv_t;
    1.12  extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode,
    1.13                                                     const char *fromcode);
    1.14  extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd);
    1.15 -extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, char **inbuf,
    1.16 +#endif
    1.17 +extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf,
    1.18                                           size_t * inbytesleft, char **outbuf,
    1.19                                           size_t * outbytesleft);
    1.20 -#endif
    1.21  /* This function converts a string between encodings in one pass, returning a
    1.22     string that must be freed with SDL_free() or NULL on error.
    1.23  */
    1.24  extern DECLSPEC char *SDLCALL SDL_iconv_string(const char *tocode,
    1.25                                                 const char *fromcode,
    1.26 -                                               char *inbuf,
    1.27 +                                               const char *inbuf,
    1.28                                                 size_t inbytesleft);
    1.29  #define SDL_iconv_utf8_ascii(S)		SDL_iconv_string("ASCII", "UTF-8", S, SDL_strlen(S)+1)
    1.30  #define SDL_iconv_utf8_latin1(S)	SDL_iconv_string("LATIN1", "UTF-8", S, SDL_strlen(S)+1)