}
}
-#if defined(HAVE_LIBEDIT) and not defined(DISABLE_COMPLETION)
+#ifndef DISABLE_COMPLETION
/**** CARGO CULT CODE AHEAD ****/
const std::vector<ConsoleKeyword> g_consoleKeywords{
/* keyword, function, parameters, description */
{ "wrandom", false, "", "Weighted random over available servers, based on the server 'weight' parameter" },
};
+#if defined(HAVE_LIBEDIT)
extern "C" {
static char* my_generator(const char* text, int state)
{
return matches;
}
}
+#endif /* HAVE_LIBEDIT */
#endif /* DISABLE_COMPLETION */
static void controlClientThread(ConsoleConnection&& conn)