comparison include/SDL_stdinc.h @ 3295:4ff84e8939c1

Whoops, need both the header and the library!
author Sam Lantinga <slouken@libsdl.org>
date Mon, 21 Sep 2009 11:31:28 +0000
parents 470d0a416aa7
children 9cd5b35c0184
comparison
equal deleted inserted replaced
3294:470d0a416aa7 3295:4ff84e8939c1
73 # include <ctype.h> 73 # include <ctype.h>
74 #endif 74 #endif
75 #ifdef HAVE_MATH_H 75 #ifdef HAVE_MATH_H
76 # include <math.h> 76 # include <math.h>
77 #endif 77 #endif
78 #ifdef HAVE_ICONV_H 78 #if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
79 # include <iconv.h> 79 # include <iconv.h>
80 #endif 80 #endif
81 81
82 /* The number of elements in an array */ 82 /* The number of elements in an array */
83 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) 83 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0]))
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_H 738 #if defined(HAVE_ICONV) && defined(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;