1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

wrap FileStream's helper functions into anonymous namespace

This commit is contained in:
Andrey Filipenkov 2023-02-24 12:58:02 +03:00
parent 85d1909ac5
commit e6d87d5f35

View File

@ -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)>;