move these into a read-write data segment

This commit is contained in:
Rick V 2019-04-11 10:53:21 -05:00
parent 7b1730c470
commit 9a24c46aa6
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,9 @@
#include <util/win32_logger.hpp>
#include <util/logger_internal.hpp>
static CONSOLE_SCREEN_BUFFER_INFO consoleInfo;
static short old_attrs;
namespace llarp
{
Win32LogStream::Win32LogStream(std::ostream& out) : OStreamLogStream(out)

View File

@ -21,8 +21,6 @@ namespace llarp
bool isConsoleModern =
true; // qol fix so oldfag clients don't see ugly escapes
HANDLE fd1 = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO consoleInfo;
short old_attrs;
};
} // namespace llarp
#endif