]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl99.h
Consolidate header files.
[cdecl99.git] / src / cdecl99.h
index 6eb1b6cb3f2e9818420b2f29cd5327529590b6ca..e1030d44994df369cab205ca93b8271703f464d5 100644 (file)
@@ -28,4 +28,12 @@ int run_command_simplify(const char *arg);
 int run_command_explain(const char *arg);
 int run_command_declare(const char *cmdarg);
 
+#if HAVE_RL_ADD_HISTORY && HAVE_READLINE_HISTORY_H
+#  include <readline/history.h>
+#else
+static inline void add_history(const char *str)
+{
+}
+#endif
+
 #endif