Mercurial > sdl-ios-xcode
comparison include/SDL_stdinc.h @ 3294:470d0a416aa7
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 21 Sep 2009 11:04:01 +0000 |
parents | f8c02d0560d5 |
children | 4ff84e8939c1 |
comparison
equal
deleted
inserted
replaced
3293:0d60bdebed39 | 3294:470d0a416aa7 |
---|---|
733 #define SDL_ICONV_ERROR (size_t)-1 | 733 #define SDL_ICONV_ERROR (size_t)-1 |
734 #define SDL_ICONV_E2BIG (size_t)-2 | 734 #define SDL_ICONV_E2BIG (size_t)-2 |
735 #define SDL_ICONV_EILSEQ (size_t)-3 | 735 #define SDL_ICONV_EILSEQ (size_t)-3 |
736 #define SDL_ICONV_EINVAL (size_t)-4 | 736 #define SDL_ICONV_EINVAL (size_t)-4 |
737 | 737 |
738 #ifdef HAVE_ICONV | 738 #ifdef HAVE_ICONV_H |
739 #define SDL_iconv_t iconv_t | 739 #define SDL_iconv_t iconv_t |
740 #define SDL_iconv_open iconv_open | 740 #define SDL_iconv_open iconv_open |
741 #define SDL_iconv_close iconv_close | 741 #define SDL_iconv_close iconv_close |
742 #else | 742 #else |
743 typedef struct _SDL_iconv_t *SDL_iconv_t; | 743 typedef struct _SDL_iconv_t *SDL_iconv_t; |