1
#ifndef _system_readline_h
2
#define _system_readline_h
4
Unix SMB/CIFS implementation.
8
** NOTE! The following LGPL license applies to the replace
9
** library. This does NOT imply that all of Samba is released
12
This library is free software; you can redistribute it and/or
13
modify it under the terms of the GNU Lesser General Public
14
License as published by the Free Software Foundation; either
15
version 3 of the License, or (at your option) any later version.
17
This library is distributed in the hope that it will be useful,
18
but WITHOUT ANY WARRANTY; without even the implied warranty of
19
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
Lesser General Public License for more details.
22
You should have received a copy of the GNU Lesser General Public
23
License along with this library; if not, see <http://www.gnu.org/licenses/>.
27
#ifdef HAVE_LIBREADLINE
28
# ifdef HAVE_READLINE_READLINE_H
29
# include <readline/readline.h>
30
# ifdef HAVE_READLINE_HISTORY_H
31
# include <readline/history.h>
34
# ifdef HAVE_READLINE_H
35
# include <readline.h>
36
# ifdef HAVE_HISTORY_H
40
# undef HAVE_LIBREADLINE
45
#ifdef HAVE_NEW_LIBREADLINE
46
# define RL_COMPLETION_CAST (rl_completion_func_t *)
48
/* This type is missing from libreadline<4.0 (approximately) */
49
# define RL_COMPLETION_CAST
50
#endif /* HAVE_NEW_LIBREADLINE */