Mercurial > sdl-ios-xcode
comparison include/SDL_stdinc.h @ 4222:6823a52d06fa SDL-1.2
Fixed bug #714
fuzzyTew@gmail.com 2009-03-14 15:18:45 PDT
Created an attachment (id=305) [details]
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:32 +0000 |
parents | 4c4113c2162c |
children | 6637846f3f7f |
comparison
equal
deleted
inserted
replaced
4221:c56391324e59 | 4222:6823a52d06fa |
---|---|
581 #define SDL_ICONV_E2BIG (size_t)-2 | 581 #define SDL_ICONV_E2BIG (size_t)-2 |
582 #define SDL_ICONV_EILSEQ (size_t)-3 | 582 #define SDL_ICONV_EILSEQ (size_t)-3 |
583 #define SDL_ICONV_EINVAL (size_t)-4 | 583 #define SDL_ICONV_EINVAL (size_t)-4 |
584 /*@}*/ | 584 /*@}*/ |
585 | 585 |
586 #ifdef HAVE_ICONV | 586 #ifdef HAVE_ICONV_H |
587 #define SDL_iconv_t iconv_t | 587 #define SDL_iconv_t iconv_t |
588 #define SDL_iconv_open iconv_open | 588 #define SDL_iconv_open iconv_open |
589 #define SDL_iconv_close iconv_close | 589 #define SDL_iconv_close iconv_close |
590 #else | 590 #else |
591 typedef struct _SDL_iconv_t *SDL_iconv_t; | 591 typedef struct _SDL_iconv_t *SDL_iconv_t; |