summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTitanSnow <[email protected]>2017-05-07 11:44:25 +0800
committerTitanSnow <[email protected]>2017-05-07 11:44:25 +0800
commit844a532df09ba4817a263b9e3dd4f36181e21a48 (patch)
treea23c84e819dc164531b5f75ac3f5526a02532d31
parent9bab139e1e8f441e15555f721ecb3d7d308376d7 (diff)
Revert "add readline declatation"
This reverts commit 8be20cf25d130505f43953334899a54ef2d43c6f.
-rw-r--r--core/src/xmake/sandbox/interactive.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/src/xmake/sandbox/interactive.c b/core/src/xmake/sandbox/interactive.c
index c59e1060b..376056750 100644
--- a/core/src/xmake/sandbox/interactive.c
+++ b/core/src/xmake/sandbox/interactive.c
@@ -40,6 +40,10 @@
* includes
*/
#include "prefix.h"
+#ifdef XM_CONFIG_API_HAVE_READLINE
+# include <readline/readline.h>
+# include <readline/history.h>
+#endif
/* //////////////////////////////////////////////////////////////////////////////////////
* macros
@@ -52,14 +56,6 @@
#define LUA_PROMPT2 ">> "
/* //////////////////////////////////////////////////////////////////////////////////////
- * declaration
- */
-#ifdef XM_CONFIG_API_HAVE_READLINE
-extern char* readline (const char*);
-extern void add_history(const char*);
-#endif
-
-/* //////////////////////////////////////////////////////////////////////////////////////
* private implementation
*/