Use NULL to check only realine without c++11

This check always fails on centos 6 with clang 6. c++ standard flag never gets passed into the compilation command.
This commit is contained in:
Amos Bird 2017-12-19 23:30:12 +08:00 committed by alexey-milovidov
parent e25514d28a
commit b61fe07f76

View File

@ -46,8 +46,8 @@ if (LINE_EDITING_LIBS AND READLINE_INCLUDE_DIR)
#include <readline/readline.h>
#include <readline/history.h>
int main() {
add_history(nullptr);
append_history(1,nullptr);
add_history(NULL);
append_history(1,NULL);
return 0;
}
" HAVE_READLINE_HISTORY)