mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
* fix(C4101): unreferenced local variable * fix(C4189): variable initialized but not referenced * fix(C4305): narrowing from double to float * fix(C4457): declaration hiding function parameter * fix(C4456): shadowing declaration * fix(C4996): remove deprecations * chore: add changelog entry * fix: Remove more unused variables * fix: removed unused lambda captures * Update changelog entry --------- Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
22 lines
402 B
C++
22 lines
402 B
C++
#include "util/AttachToConsole.hpp"
|
|
|
|
#ifdef USEWINSDK
|
|
# include <Windows.h>
|
|
|
|
# include <tuple>
|
|
#endif
|
|
|
|
namespace chatterino {
|
|
|
|
void attachToConsole()
|
|
{
|
|
#ifdef USEWINSDK
|
|
if (AttachConsole(ATTACH_PARENT_PROCESS))
|
|
{
|
|
std::ignore = freopen_s(nullptr, "CONOUT$", "w", stdout);
|
|
std::ignore = freopen_s(nullptr, "CONOUT$", "w", stderr);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
} // namespace chatterino
|