Fix build on windows.

--HG--
branch : trunk
This commit is contained in:
raczman
2009-06-08 23:04:49 +02:00
parent 5ae74c5b58
commit dbdd87ec8c

View File

@@ -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))