* Add support for other operating systems (kFreeBSD, FreeBSD, and OSX for now).

* Switch to autoconf from genconfig.sh.
This commit is contained in:
Justin Maggard
2011-09-16 23:39:58 +00:00
parent 715af3519b
commit 773e1f6566
40 changed files with 1952 additions and 533 deletions

View File

@ -33,10 +33,10 @@ typedef enum {
static iconv_result
do_iconv(const char* to_ces, const char* from_ces,
char *inbuf, size_t inbytesleft,
ICONV_CONST char *inbuf, size_t inbytesleft,
char *outbuf_orig, size_t outbytesleft_orig)
{
#ifdef HAVE_ICONV_H
#ifdef HAVE_ICONV
size_t rc;
iconv_result ret = ICONV_OK;
@ -65,9 +65,9 @@ do_iconv(const char* to_ces, const char* from_ces,
iconv_close(cd);
return ret;
#else // HAVE_ICONV_H
#else // HAVE_ICONV
return ICONV_FATAL;
#endif // HAVE_ICONV_H
#endif // HAVE_ICONV
}
#define N_LANG_ALT 8