From 14bf80399fb476a28df7f3e2dc47a0a80d4f9a86 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Sat, 22 May 2004 20:19:15 +0000 Subject: [PATCH] add missing #ifdefs around prototypes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1752 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/proto.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1fecee02..b2b92083 100644 --- a/ChangeLog +++ b/ChangeLog @@ -149,6 +149,8 @@ CVS code - - proto.h: - Remove unused xpt() and add_marked_sameline() prototypes. (DLR) + - Add missing #ifdefs around the nstristr() and get_mouseinput() + prototypes. (DLR) - rcfile.c: - Move "rebinddelete" up in the list of options so that the list is in alphabetical order. (DLR) diff --git a/src/proto.h b/src/proto.h index 0e0ca45a..a3cf85c2 100644 --- a/src/proto.h +++ b/src/proto.h @@ -438,7 +438,9 @@ int nstricmp(const char *s1, const char *s2); #ifndef HAVE_STRNCASECMP int nstrnicmp(const char *s1, const char *s2, size_t n); #endif +#ifndef HAVE_STRCASESTR const char *nstristr(const char *haystack, const char *needle); +#endif #ifndef NANO_SMALL const char *revstrstr(const char *haystack, const char *needle, const char *rev_start); @@ -470,7 +472,9 @@ int get_ascii_kbinput(WINDOW *win, int kbinput); int get_escape_seq_kbinput(WINDOW *win, int *escape_seq, size_t escape_seq_len); int get_escape_seq_abcd(int kbinput); +#ifndef DISABLE_MOUSE int get_mouseinput(int *mouse_x, int *mouse_y, int shortcut); +#endif int do_first_line(void); int do_last_line(void); size_t xplustabs(void); -- 2.39.5