mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 07:39:45 -06:00
Support the new MSVC preprocessor
Intends to fix https://bugs.dolphin-emu.org/issues/12170.
This commit is contained in:
@ -32,7 +32,7 @@ bool MsgAlert(bool yes_no, MsgType style, const char* format, ...)
|
|||||||
void SetEnableAlert(bool enable);
|
void SetEnableAlert(bool enable);
|
||||||
} // namespace Common
|
} // namespace Common
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL == 1)
|
||||||
#define SuccessAlert(format, ...) \
|
#define SuccessAlert(format, ...) \
|
||||||
Common::MsgAlert(false, Common::MsgType::Information, format, __VA_ARGS__)
|
Common::MsgAlert(false, Common::MsgType::Information, format, __VA_ARGS__)
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ constexpr u32 MAX_XFB_WIDTH = 720;
|
|||||||
// that are next to each other in memory (TODO: handle that situation).
|
// that are next to each other in memory (TODO: handle that situation).
|
||||||
constexpr u32 MAX_XFB_HEIGHT = 576;
|
constexpr u32 MAX_XFB_HEIGHT = 576;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) && (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL == 1)
|
||||||
#define PRIM_LOG(...) DEBUG_LOG(VIDEO, __VA_ARGS__)
|
#define PRIM_LOG(...) DEBUG_LOG(VIDEO, __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define PRIM_LOG(...) DEBUG_LOG(VIDEO, ##__VA_ARGS__)
|
#define PRIM_LOG(...) DEBUG_LOG(VIDEO, ##__VA_ARGS__)
|
||||||
|
Reference in New Issue
Block a user