- bugfixes so that the mingw compile builds

This commit is contained in:
Mark Vejvoda
2011-05-24 22:51:45 +00:00
parent 1f1c0f34a3
commit e221011af2
15 changed files with 71 additions and 33 deletions

View File

@@ -20,6 +20,7 @@
#include "game.h"
#include "config.h"
#include "network_manager.h"
#include "platform_util.h"
#include "leak_dumper.h"
using namespace Shared::Util;
@@ -53,7 +54,7 @@ AiInterface::AiInterface(Game &game, int factionIndex, int teamIndex, int useSta
//clear log file
if(logLevel>0){
#ifdef WIN32
FILE *f= _wfopen(utf8_decode(getLogFilename()).c_str(), L"wt");
FILE *f= _wfopen(Shared::Platform::utf8_decode(getLogFilename()).c_str(), L"wt");
#else
FILE *f= fopen(getLogFilename().c_str(), "wt");
#endif