From 95778fda7026dd00c661d84eb44dc5dc0eecc554 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Thu, 2 Jun 2005 02:27:12 +0000
Subject: [PATCH] fix mismatched #ifdefs

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2574 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/proto.h  | 2 +-
 src/search.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/proto.h b/src/proto.h
index 77aca662..33ae447f 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -524,7 +524,7 @@ void do_gotolinecolumn_void(void);
 void do_gotopos(int line, size_t pos_x, int pos_y, size_t pos_pww);
 #endif
 void do_find_bracket(void);
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
 bool history_has_changed(void);
 void history_init(void);
 filestruct *find_history(filestruct *h, const char *s);
diff --git a/src/search.c b/src/search.c
index ce78a225..2ae9c385 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1119,7 +1119,7 @@ void do_find_bracket(void)
 }
 #endif
 
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
 /* Indicate whether any of the history lists have changed. */
 bool history_has_changed(void)
 {
@@ -1239,4 +1239,4 @@ char *get_history_newer(filestruct **h)
 
     return (*h)->data;
 }
-#endif /* !NANO_SMALL */
+#endif /* !NANO_SMALL && ENABLE_NANORC */
-- 
GitLab