r18127: Add macro AC_CHECK_DECL() for systems that don't have it.
[sfrench/samba-autobuild/.git] / source4 / lib / replace / system / iconv.h
1 #ifndef _system_iconv_h
2 #define _system_iconv_h
3 /* 
4    Unix SMB/CIFS implementation.
5
6    iconv memory system include wrappers
7
8    Copyright (C) Andrew Tridgell 2004
9    
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.
14    
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.
19    
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.
23 */
24
25 #ifdef HAVE_NATIVE_ICONV
26 #ifdef HAVE_ICONV_H
27 #include <iconv.h>
28 #endif
29 #ifdef HAVE_GICONV_H
30 #include <giconv.h>
31 #endif
32 #endif
33
34 /* needed for some systems without iconv. Doesn't really matter
35    what error code we use */
36 #ifndef EILSEQ
37 #define EILSEQ EIO
38 #endif
39
40 #endif