1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-12-08 00:34:31 +00:00

Fix Windows Debug build

This was a regression from https://gitlab.com/OpenMW/openmw/-/merge_requests/4596

Also move more things into the anonymous namespace because there's not really a reason not to and I had to rearrange things anyway.
This commit is contained in:
AnyOldName3 2025-04-11 17:33:19 +01:00
parent ea8369eff0
commit 396cd1c727

View file

@ -106,6 +106,8 @@ namespace Debug
logListener = std::move(listener);
}
namespace
{
class DebugOutputBase : public boost::iostreams::sink
{
public:
@ -192,8 +194,6 @@ namespace Debug
};
#else
namespace
{
struct Record
{
std::string mValue;
@ -324,6 +324,7 @@ namespace Debug
First mFirst;
Second mSecond;
};
#endif
Level toLevel(std::string_view value)
{
@ -340,8 +341,6 @@ namespace Debug
return Verbose;
}
}
#endif
static std::unique_ptr<std::ostream> rawStdout = nullptr;
static std::unique_ptr<std::ostream> rawStderr = nullptr;
@ -356,6 +355,7 @@ namespace Debug
static boost::iostreams::stream_buffer<Tee<Buffer, Coloured>> bufferedOut;
static boost::iostreams::stream_buffer<Tee<Buffer, Coloured>> bufferedErr;
#endif
}
std::ostream& getRawStdout()
{