diff options
author | raczman <none@none> | 2009-06-08 23:04:49 +0200 |
---|---|---|
committer | raczman <none@none> | 2009-06-08 23:04:49 +0200 |
commit | dbdd87ec8c10d3614abe451fbb554bcb35b6af69 (patch) | |
tree | 31986112d1d4d7fb5ac33118f90d27f4720fbe0e /src/trinitycore/CliRunnable.cpp | |
parent | 5ae74c5b589ff6530d0258bb77d32f4cba03020e (diff) |
Fix build on windows.
--HG--
branch : trunk
Diffstat (limited to 'src/trinitycore/CliRunnable.cpp')
-rw-r--r-- | src/trinitycore/CliRunnable.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |