[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.
[Samba.git] / source / lib / replace / system / iconv.h
blobabc2d6f4e1b3b6d158a8cbff5c0098977a635982
1 #ifndef _system_iconv_h
2 #define _system_iconv_h
3 /*
4 Unix SMB/CIFS implementation.
6 iconv memory system include wrappers
8 Copyright (C) Andrew Tridgell 2004
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
25 #if !defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
26 #define HAVE_ICONV
27 #endif
29 #if !defined(HAVE_GICONV) && defined(HAVE_GICONV_H)
30 #define HAVE_GICONV
31 #endif
33 #if !defined(HAVE_BICONV) && defined(HAVE_BICONV_H)
34 #define HAVE_BICONV
35 #endif
37 #ifdef HAVE_NATIVE_ICONV
38 #if defined(HAVE_ICONV)
39 #include <iconv.h>
40 #elif defined(HAVE_GICONV)
41 #include <giconv.h>
42 #elif defined(HAVE_BICONV)
43 #include <biconv.h>
44 #endif
45 #endif /* HAVE_NATIVE_ICONV */
47 /* needed for some systems without iconv. Doesn't really matter
48 what error code we use */
49 #ifndef EILSEQ
50 #define EILSEQ EIO
51 #endif
53 #endif