From dbdd87ec8c10d3614abe451fbb554bcb35b6af69 Mon Sep 17 00:00:00 2001 From: raczman Date: Mon, 8 Jun 2009 23:04:49 +0200 Subject: Fix build on windows. --HG-- branch : trunk --- src/trinitycore/CliRunnable.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp index 179ee4db80b..8b4ed30cf80 100644 --- a/src/trinitycore/CliRunnable.cpp +++ b/src/trinitycore/CliRunnable.cpp @@ -369,7 +369,9 @@ void CliRunnable::run() bool canflush = true; ///- Display the list of available CLI functions then beep sLog.outString(); + #if PLATFORM != WINDOWS rl_attempted_completion_function = cli_completion; + #endif if(sConfig.GetBoolDefault("BeepAtStart", true)) printf("\a"); // \a = Alert @@ -417,8 +419,10 @@ void CliRunnable::run() continue; } fflush(stdout); + #if PLATFORM != WINDOWS sWorld.QueueCliCommand(&utf8print,command.c_str()); add_history(command.c_str()); + #endif } else if (feof(stdin)) -- cgit v1.2.3