1 /* @(#)iconv.h 1.4 08/01/02 Copyright 2007 J. Schilling */
3 * Abstraction from iconv.h
5 * Copyright (c) 2007 J. Schilling
8 * The contents of this file are subject to the terms of the
9 * Common Development and Distribution License, Version 1.0 only
10 * (the "License"). You may not use this file except in compliance
13 * See the file CDDL.Schily.txt in this distribution for details.
15 * When distributing Covered Code, include this CDDL HEADER in each
16 * file and include the License file CDDL.Schily.txt from this distribution.
19 #ifndef _SCHILY_ICONV_H
20 #define _SCHILY_ICONV_H
22 #ifndef _SCHILY_MCONFIG_H
23 #include <schily/mconfig.h>
36 * Libiconv on Cygwin is not autoconf-friendly.
37 * iconv.h #defined iconv to libiconv
38 * We would need a AC_CHECK_FUNC() macro that allows to specify includefiles.
40 #if defined(HAVE_LIBICONV) && defined(HAVE_LIBICONV_OPEN) && \
41 defined(HAVE_LIBICONV_CLOSE) && \
42 defined(iconv) && defined(iconv_open) && defined(iconv_close)
46 # ifndef HAVE_ICONV_OPEN
47 # define HAVE_ICONV_OPEN
49 # ifndef HAVE_ICONV_CLOSE
50 # define HAVE_ICONV_CLOSE
54 #if !defined(HAVE_ICONV_OPEN) || !defined(HAVE_ICONV_CLOSE)
68 #define iconv_t char *
72 #endif /* _SCHILY_ICONV_H */