mirror of
https://github.com/glest/glest-source.git
synced 2025-09-28 08:29:00 +02:00
- bugfixes so that the mingw compile builds
This commit is contained in:
@@ -46,7 +46,7 @@ void Properties::load(const string &path, bool clearCurrentProperties) {
|
||||
size_t pos=0;
|
||||
this->path= path;
|
||||
|
||||
#ifdef WIN32
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
FILE *fp = _wfopen(utf8_decode(path).c_str(), L"r");
|
||||
ifstream fileStream(fp);
|
||||
#else
|
||||
@@ -110,7 +110,7 @@ void Properties::load(const string &path, bool clearCurrentProperties) {
|
||||
}
|
||||
|
||||
fileStream.close();
|
||||
#ifdef WIN32
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
fclose(fp);
|
||||
#endif
|
||||
}
|
||||
@@ -269,7 +269,7 @@ bool Properties::applyTagsToValue(string &value, std::map<string,string> *mapTag
|
||||
}
|
||||
|
||||
void Properties::save(const string &path){
|
||||
#ifdef WIN32
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
FILE *fp = _wfopen(utf8_decode(path).c_str(), L"w");
|
||||
ofstream fileStream(fp);
|
||||
#else
|
||||
@@ -284,7 +284,7 @@ void Properties::save(const string &path){
|
||||
}
|
||||
|
||||
fileStream.close();
|
||||
#ifdef WIN32
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
fclose(fp);
|
||||
#endif
|
||||
}
|
||||
|
@@ -513,7 +513,7 @@ void SystemFlags::logDebugEntry(DebugType type, string debugEntry, time_t debugT
|
||||
}
|
||||
|
||||
if(currentDebugLog.fileStream == NULL) {
|
||||
#ifdef WIN32
|
||||
#if defined(WIN32) && !defined(__MINGW32__)
|
||||
currentDebugLog.fileStream = new std::ofstream(_wfopen(utf8_decode(debugLog).c_str(), L"w"));
|
||||
#else
|
||||
currentDebugLog.fileStream = new std::ofstream();
|
||||
|
Reference in New Issue
Block a user