1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +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;
#endif
namespace
{
inline FILE* do_open(const CharType* name, const CharType* mode)
{
#ifdef VCMI_WINDOWS
@@ -61,6 +63,7 @@ voidpf ZCALLBACK MinizipOpenFunc(voidpf opaque, const void* filename, int mode)
else
return nullptr;
}
} // namespace
template struct boost::iostreams::stream<VCMI_LIB_WRAP_NAMESPACE(FileBuf)>;