mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
additional polishing
This commit is contained in:
@@ -17,6 +17,7 @@ set(lib_SRCS
|
|||||||
filesystem/CFileInputStream.cpp
|
filesystem/CFileInputStream.cpp
|
||||||
filesystem/CZipLoader.cpp
|
filesystem/CZipLoader.cpp
|
||||||
filesystem/Filesystem.cpp
|
filesystem/Filesystem.cpp
|
||||||
|
filesystem/FileStream.cpp
|
||||||
filesystem/ResourceID.cpp
|
filesystem/ResourceID.cpp
|
||||||
|
|
||||||
mapObjects/CArmedInstance.cpp
|
mapObjects/CArmedInstance.cpp
|
||||||
|
|||||||
@@ -1,11 +1,16 @@
|
|||||||
#include "StdInc.h"
|
#include "StdInc.h"
|
||||||
#include "FileStream.h"
|
#include "FileStream.h"
|
||||||
|
|
||||||
|
#ifdef USE_SYSTEM_MINIZIP
|
||||||
|
#include <minizip/unzip.h>
|
||||||
|
#else
|
||||||
#include "../minizip/unzip.h"
|
#include "../minizip/unzip.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef VCMI_WINDOWS
|
||||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||||
#define _CRT_SECURE_NO_WARNINGS
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
#endif
|
#endif
|
||||||
@@ -19,7 +24,7 @@
|
|||||||
|
|
||||||
inline FILE* do_open(const CharType* name, const CharType* mode)
|
inline FILE* do_open(const CharType* name, const CharType* mode)
|
||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef VCMI_WINDOWS
|
||||||
return _wfopen(name, mode);
|
return _wfopen(name, mode);
|
||||||
#else
|
#else
|
||||||
return std::fopen(name, mode);
|
return std::fopen(name, mode);
|
||||||
|
|||||||
Reference in New Issue
Block a user