Skip to content
Browse files

Adjusted to handle different constness in older versions of iconv.

  Fixes Bugzilla #419.
  • Loading branch information
icculus committed Mar 30, 2007
1 parent 4d831cd commit baa2571c2d1a78c503152fb412eabf2537317b82
Showing with 2 additions and 1 deletion.
  1. +2 −1 include/SDL_stdinc.h
@@ -561,12 +561,13 @@ extern DECLSPEC int SDLCALL SDL_vsnprintf(char *text, size_t maxlen, const char
#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);
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);
/* This function converts a string between encodings in one pass, returning a
string that must be freed with SDL_free() or NULL on error.

0 comments on commit baa2571

Please sign in to comment.