OpenVAS Scanner  6.0.1
iconv.h
Go to the documentation of this file.
1 /* Copyright (C) Andrew Tridgell 2004
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
25 #ifndef _system_iconv_h
26 #define _system_iconv_h
27 
28 #if !defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
29 #define HAVE_ICONV
30 #endif
31 
32 #if !defined(HAVE_GICONV) && defined(HAVE_GICONV_H)
33 #define HAVE_GICONV
34 #endif
35 
36 #if !defined(HAVE_BICONV) && defined(HAVE_BICONV_H)
37 #define HAVE_BICONV
38 #endif
39 
40 #ifdef HAVE_NATIVE_ICONV
41 #if defined(HAVE_ICONV)
42 #include <iconv.h>
43 #elif defined(HAVE_GICONV)
44 #include <giconv.h>
45 #elif defined(HAVE_BICONV)
46 #include <biconv.h>
47 #endif
48 #endif /* HAVE_NATIVE_ICONV */
49 
50 /* needed for some systems without iconv. Doesn't really matter
51  what error code we use */
52 #ifndef EILSEQ
53 #define EILSEQ EIO
54 #endif
55 
56 #endif
Unix SMB/CIFS implementation. iconv memory system include wrappers.