comparison include/SDL_stdinc.h @ 4224:6637846f3f7f SDL-1.2

Whoops, need both the header and the library!
author Sam Lantinga <slouken@libsdl.org>
date Mon, 21 Sep 2009 11:30:54 +0000
parents 6823a52d06fa
children 48e63c07bbbf
comparison
equal deleted inserted replaced
4223:63fd67e17705 4224:6637846f3f7f
68 # include <stdint.h> 68 # include <stdint.h>
69 #endif 69 #endif
70 #ifdef HAVE_CTYPE_H 70 #ifdef HAVE_CTYPE_H
71 # include <ctype.h> 71 # include <ctype.h>
72 #endif 72 #endif
73 #ifdef HAVE_ICONV_H 73 #if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
74 # include <iconv.h> 74 # include <iconv.h>
75 #endif 75 #endif
76 76
77 /** The number of elements in an array */ 77 /** The number of elements in an array */
78 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0])) 78 #define SDL_arraysize(array) (sizeof(array)/sizeof(array[0]))
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_H 586 #if defined(HAVE_ICONV) && defined(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;