We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 407

Summary: src/stdlib/SDL_iconv.c and include/SDL_stdinc.h have mismatching defintionts for SDL_iconv
Product: SDL Reporter: Ben Taylor <sol11x86>
Component: threadAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED DUPLICATE QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: x86   
OS: Solaris   

Description Ben Taylor 2007-03-04 08:03:43 UTC
Having configured libSDL on Solaris 10/U3 X86 with:

env CFLAGS="-DNO_SDL_GLEXT" ./configure --prefix=/tmp/local --disable-joystick --enable-threads

the make fails on src/stdlib/SDL_iconv.c and include/SDL_stdinc.h
with mismatching definitions.  Interestingly enough, there were
two other definitions that had been corrected between current SVN
and the Jan4 update.

--- ../SDL-1.2.Jan4/src/stdlib/SDL_iconv.c      2007-01-22 23:48:28.000000000 -0500
+++ src/stdlib/SDL_iconv.c      2007-03-04 10:57:34.716637000 -0500
@@ -31,7 +31,7 @@
 #include <errno.h>

 size_t SDL_iconv(SDL_iconv_t cd,
-                 char **inbuf, size_t *inbytesleft,
+                 const char **inbuf, size_t *inbytesleft,
                  char **outbuf, size_t *outbytesleft)
 {
        size_t retCode = iconv(cd, inbuf, inbytesleft, outbuf, outbytesleft);
Comment 1 Ryan C. Gordon 2007-03-04 12:00:07 UTC
Please stop resolving bugs as WORKSFORME, it doesn't mean what you think it does.

Reopening bug.

--ryan.

Comment 2 Ryan C. Gordon 2007-04-04 03:48:09 UTC
This got fixed with Bug #419.

--ryan.



*** This bug has been marked as a duplicate of bug 419 ***