bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/common/logging/backend.cpp
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
#include <vector>
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <share.h> // For _SH_DENYWR
|
|
|
|
#include <windows.h> // For OutputDebugStringA
|
|
|
|
#include <windows.h> // For OutputDebugStringW
|
|
|
|
#else
|
|
|
|
#define _SH_DENYWR 0
|
|
|
|
#endif
|
|
|
|
@ -148,7 +148,7 @@ void FileBackend::Write(const Entry& entry) { |
|
|
|
|
|
|
|
void DebuggerBackend::Write(const Entry& entry) { |
|
|
|
#ifdef _WIN32
|
|
|
|
::OutputDebugStringA(FormatLogMessage(entry).append(1, '\n').c_str()); |
|
|
|
::OutputDebugStringW(Common::UTF8ToUTF16W(FormatLogMessage(entry).append(1, '\n')).c_str()); |
|
|
|
#endif
|
|
|
|
} |
|
|
|
|
|
|
|
|