mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- fixed win32 build
This commit is contained in:
@@ -714,10 +714,10 @@ void MapPreview::loadFromFile(const string &path) {
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
wstring wstr = utf8_decode(path);
|
wstring wstr = utf8_decode(path);
|
||||||
FILE* f1= _wfopen(wstr.c_str(), L"rb");
|
FILE* f1= _wfopen(wstr.c_str(), L"rb");
|
||||||
|
int fileErrno = errno;
|
||||||
#else
|
#else
|
||||||
FILE *f1 = fopen(path.c_str(), "rb");
|
FILE *f1 = fopen(path.c_str(), "rb");
|
||||||
#endif
|
#endif
|
||||||
//int fileErrno = errno;
|
|
||||||
if (f1 != NULL) {
|
if (f1 != NULL) {
|
||||||
|
|
||||||
//read header
|
//read header
|
||||||
|
Reference in New Issue
Block a user