mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Fix debugging on Windows 8.1
This commit is contained in:
parent
a7aabe0ea6
commit
cff7ec1d10
@ -24,11 +24,11 @@
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef LC_WINDOWS_PHONE
|
||||
#if defined(LC_WINDOWS_PHONE) || defined(LC_WINDOWS)
|
||||
extern WCHAR DbgBuf[512];
|
||||
#define Limelog(s, ...) \
|
||||
swprintf(DbgBuf, sizeof(DbgBuf) / sizeof(WCHAR), L ## s, ##__VA_ARGS__); \
|
||||
OutputDebugString(DbgBuf)
|
||||
OutputDebugStringW(DbgBuf)
|
||||
#else
|
||||
#define Limelog printf
|
||||
#endif
|
||||
|
@ -6,7 +6,7 @@ struct thread_context {
|
||||
void* context;
|
||||
};
|
||||
|
||||
#if defined(LC_WINDOWS_PHONE)
|
||||
#if defined(LC_WINDOWS_PHONE) || defined(LC_WINDOWS)
|
||||
WCHAR DbgBuf[512];
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user