Fixed bug #714
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 11:04:01 +0000
changeset 3294470d0a416aa7
parent 3293 0d60bdebed39
child 3295 4ff84e8939c1
Fixed bug #714

fuzzyTew@gmail.com 2009-03-14 15:18:45 PDT

patch to change HAVE_ICONV to HAVE_ICONV_H

There are two separate iconv checks in configure -- one for the header file and
one for the library. include/SDL_stdinc.h uses the library define to see
whether or not it should reference the types defined in the header, which
naturally breaks if the library exists and the header does not.
include/SDL_stdinc.h
     1.1 --- a/include/SDL_stdinc.h	Mon Sep 21 10:23:19 2009 +0000
     1.2 +++ b/include/SDL_stdinc.h	Mon Sep 21 11:04:01 2009 +0000
     1.3 @@ -735,7 +735,7 @@
     1.4  #define SDL_ICONV_EILSEQ	(size_t)-3
     1.5  #define SDL_ICONV_EINVAL	(size_t)-4
     1.6  
     1.7 -#ifdef HAVE_ICONV
     1.8 +#ifdef HAVE_ICONV_H
     1.9  #define SDL_iconv_t     iconv_t
    1.10  #define SDL_iconv_open  iconv_open
    1.11  #define SDL_iconv_close iconv_close