# HG changeset patch # User Ryan C. Gordon # Date 1175285395 0 # Node ID 6a62cbdd65f57b4fd9315a4ab23b81b186b3dd75 # Parent f86ced1837de4ef88af807c7df38740d639a1df5 Adjusted to handle different constness in older versions of iconv. Fixes Bugzilla #419. diff -r f86ced1837de -r 6a62cbdd65f5 include/SDL_stdinc.h --- a/include/SDL_stdinc.h Fri Mar 30 06:26:28 2007 +0000 +++ b/include/SDL_stdinc.h Fri Mar 30 20:09:55 2007 +0000 @@ -561,12 +561,13 @@ #define SDL_iconv_t iconv_t #define SDL_iconv_open iconv_open #define SDL_iconv_close iconv_close +extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); #else typedef struct _SDL_iconv_t *SDL_iconv_t; extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode, const char *fromcode); extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd); +extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); #endif -extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); /* This function converts a string between encodings in one pass, returning a string that must be freed with SDL_free() or NULL on error. */