]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove extern ref to add_history()
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Aug 2017 14:06:33 +0000 (19:36 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 24 Aug 2017 14:06:33 +0000 (19:36 +0530)
nnn.c

diff --git a/nnn.c b/nnn.c
index 8a7bc98cbf8c5adf1d5c457a53257d4e558bbc92..6736df952a15170b26d7401bb519c18a7649e49a 100644 (file)
--- a/nnn.c
+++ b/nnn.c
@@ -47,6 +47,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <wchar.h>
+#include <readline/history.h>
 #include <readline/readline.h>
 #ifndef __USE_XOPEN_EXTENDED
 #define __USE_XOPEN_EXTENDED 1
@@ -181,11 +182,13 @@ typedef struct {
 } settings;
 
 /* Externs */
+#if 0
 #ifdef __APPLE__
 extern int add_history(const char *string);
 #else
 extern void add_history(const char *string);
 #endif
+#endif
 
 extern int wget_wch(WINDOW *win, wint_t *wch);