mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
wrap FileStream's helper functions into anonymous namespace
This commit is contained in:
parent
85d1909ac5
commit
e6d87d5f35
@ -32,6 +32,8 @@
|
|||||||
using CharType = char;
|
using CharType = char;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
inline FILE* do_open(const CharType* name, const CharType* mode)
|
inline FILE* do_open(const CharType* name, const CharType* mode)
|
||||||
{
|
{
|
||||||
#ifdef VCMI_WINDOWS
|
#ifdef VCMI_WINDOWS
|
||||||
@ -61,6 +63,7 @@ voidpf ZCALLBACK MinizipOpenFunc(voidpf opaque, const void* filename, int mode)
|
|||||||
else
|
else
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
} // namespace
|
||||||
|
|
||||||
template struct boost::iostreams::stream<VCMI_LIB_WRAP_NAMESPACE(FileBuf)>;
|
template struct boost::iostreams::stream<VCMI_LIB_WRAP_NAMESPACE(FileBuf)>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user