- bugfixes from windows unicode work to compile in Linux

This commit is contained in:
Mark Vejvoda
2011-05-23 19:50:17 +00:00
parent 1085f24c6f
commit adb7ec4a6a
8 changed files with 140 additions and 60 deletions

View File

@@ -18,6 +18,10 @@
#include "platform_util.h"
#include "conversion.h"
#ifndef WIN32
#include <errno.h>
#endif
using namespace Shared::Util;
using namespace std;

View File

@@ -65,6 +65,7 @@ void Properties::load(const string &path, bool clearCurrentProperties) {
while(!fileStream.eof()){
fileStream.getline(lineBuffer, maxLine);
lineBuffer[maxLine-1]='\0';
//printf("\n[%s]\n",lineBuffer);
//process line if it it not a comment
if(lineBuffer[0]!=';'){

View File

@@ -30,6 +30,10 @@
#include "conversion.h"
#include "simple_threads.h"
#include "platform_util.h"
#ifndef WIN32
#include <errno.h>
#endif
#include "leak_dumper.h"
using namespace std;