00001 #ifndef _system_iconv_h 00002 #define _system_iconv_h 00003 /* 00004 Unix SMB/CIFS implementation. 00005 00006 iconv memory system include wrappers 00007 00008 Copyright (C) Andrew Tridgell 2004 00009 00010 This program is free software; you can redistribute it and/or modify 00011 it under the terms of the GNU General Public License as published by 00012 the Free Software Foundation; either version 2 of the License, or 00013 (at your option) any later version. 00014 00015 This program is distributed in the hope that it will be useful, 00016 but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 GNU General Public License for more details. 00019 00020 You should have received a copy of the GNU General Public License 00021 along with this program; if not, write to the Free Software 00022 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00023 */ 00024 00025 #if !defined(HAVE_ICONV) && defined(HAVE_ICONV_H) 00026 #define HAVE_ICONV 00027 #endif 00028 00029 #if !defined(HAVE_GICONV) && defined(HAVE_GICONV_H) 00030 #define HAVE_GICONV 00031 #endif 00032 00033 #if !defined(HAVE_BICONV) && defined(HAVE_BICONV_H) 00034 #define HAVE_BICONV 00035 #endif 00036 00037 #ifdef HAVE_NATIVE_ICONV 00038 #if defined(HAVE_ICONV) 00039 #include <iconv.h> 00040 #elif defined(HAVE_GICONV) 00041 #include <giconv.h> 00042 #elif defined(HAVE_BICONV) 00043 #include <biconv.h> 00044 #endif 00045 #endif /* HAVE_NATIVE_ICONV */ 00046 00047 /* needed for some systems without iconv. Doesn't really matter 00048 what error code we use */ 00049 #ifndef EILSEQ 00050 #define EILSEQ EIO 00051 #endif 00052 00053 #endif