mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 14:11:15 +02:00
- bugfixes from windows unicode work to compile in Linux
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
#include "platform_util.h"
|
||||
#include "conversion.h"
|
||||
|
||||
#ifndef WIN32
|
||||
#include <errno.h>
|
||||
#endif
|
||||
|
||||
using namespace Shared::Util;
|
||||
using namespace std;
|
||||
|
||||
|
@@ -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]!=';'){
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user