From 0b80f936bf8aaae78f6a59149f69c87bc844ebac Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 8 Feb 2005 20:39:28 +0000 Subject: [PATCH] add missing #ifdef git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2310 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- src/chars.c | 2 ++ src/proto.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/chars.c b/src/chars.c index dc7303ce..df949457 100644 --- a/src/chars.c +++ b/src/chars.c @@ -762,6 +762,7 @@ size_t mbstrnlen(const char *s, size_t maxlen) #endif } +#ifndef DISABLE_TABCOMP /* Find the one-based position of the last occurrence of character c in * the first n characters of s. Return 0 if c is not found. */ size_t strrchrn(const char *s, int c, size_t n) @@ -775,3 +776,4 @@ size_t strrchrn(const char *s, int c, size_t n) return 0; } +#endif diff --git a/src/proto.h b/src/proto.h index 26940c1b..1abb8a95 100644 --- a/src/proto.h +++ b/src/proto.h @@ -205,7 +205,9 @@ size_t mbstrlen(const char *s); size_t nstrnlen(const char *s, size_t maxlen); #endif size_t mbstrnlen(const char *s, size_t maxlen); +#ifndef DISABLE_TABCOMP size_t strrchrn(const char *s, int c, size_t n); +#endif /* Public functions in color.c. */ #ifdef ENABLE_COLOR -- 2.39.5