Whoops, need both the header and the library!
authorSam Lantinga <slouken@libsdl.org>
Mon, 21 Sep 2009 11:31:28 +0000
changeset 3295 4ff84e8939c1
parent 3294 470d0a416aa7
child 3296 6fe620d7ce92
Whoops, need both the header and the library!
include/SDL_stdinc.h
--- a/include/SDL_stdinc.h	Mon Sep 21 11:04:01 2009 +0000
+++ b/include/SDL_stdinc.h	Mon Sep 21 11:31:28 2009 +0000
@@ -75,7 +75,7 @@
 #ifdef HAVE_MATH_H
 # include <math.h>
 #endif
-#ifdef HAVE_ICONV_H
+#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
 # include <iconv.h>
 #endif
 
@@ -735,7 +735,7 @@
 #define SDL_ICONV_EILSEQ	(size_t)-3
 #define SDL_ICONV_EINVAL	(size_t)-4
 
-#ifdef HAVE_ICONV_H
+#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
 #define SDL_iconv_t     iconv_t
 #define SDL_iconv_open  iconv_open
 #define SDL_iconv_close iconv_close