00001 #ifndef _system_readline_h 00002 #define _system_readline_h 00003 /* 00004 Unix SMB/CIFS implementation. 00005 00006 readline wrappers 00007 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 2 of the License, or 00011 (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with this program; if not, write to the Free Software 00020 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00021 */ 00022 00023 #ifdef HAVE_LIBREADLINE 00024 # ifdef HAVE_READLINE_READLINE_H 00025 # include <readline/readline.h> 00026 # ifdef HAVE_READLINE_HISTORY_H 00027 # include <readline/history.h> 00028 # endif 00029 # else 00030 # ifdef HAVE_READLINE_H 00031 # include <readline.h> 00032 # ifdef HAVE_HISTORY_H 00033 # include <history.h> 00034 # endif 00035 # else 00036 # undef HAVE_LIBREADLINE 00037 # endif 00038 # endif 00039 #endif 00040 00041 #ifdef HAVE_NEW_LIBREADLINE 00042 # define RL_COMPLETION_CAST (rl_completion_func_t *) 00043 #else 00044 /* This type is missing from libreadline<4.0 (approximately) */ 00045 # define RL_COMPLETION_CAST 00046 #endif /* HAVE_NEW_LIBREADLINE */ 00047 00048 #endif