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