From 09ca059e4a5a7ffb982fa68e82bdec71091c5269 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 5 May 2005 17:48:50 +0200 Subject: Bug #10245 VC++ compiler error with mysql.cc Only print the read line version if we are on a platform that supports readline mysql.cc: Add #ifdef to only print readline version if we are on a platform that supports readline client/mysql.cc: Add #ifdef to only print readline version if we are on a platform that supports readline BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted --- client/mysql.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client') diff --git a/client/mysql.cc b/client/mysql.cc index f27db0de8d8..cbcffb180c3 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -698,9 +698,15 @@ static void usage(int version) const char* readline= "readline"; #endif +#ifdef HAVE_READLINE printf("%s Ver %s Distrib %s, for %s (%s) using %s %s\n", my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE, readline, rl_library_version); +#else + printf("%s Ver %s Distrib %s, for %s (%s)", my_progname, VER, + MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE); +#endif + if (version) return; printf("\ -- cgit v1.2.1