From 19240b825de439027d24baa991d68ee14c480e91 Mon Sep 17 00:00:00 2001 From: Koncord Date: Thu, 17 Nov 2016 20:51:03 +0800 Subject: [PATCH] Fix macro for MSVC --- components/openmw-mp/Log.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/openmw-mp/Log.hpp b/components/openmw-mp/Log.hpp index 2268ab719..ae32ca40c 100644 --- a/components/openmw-mp/Log.hpp +++ b/components/openmw-mp/Log.hpp @@ -17,10 +17,16 @@ #else #define LOG_INIT(logLevel) Log::Create(logLevel) #define LOG_QUIT() Log::Delete() +#if defined(_MSC_VER) +#define LOG_MESSAGE(level, msg, ...) Log::Get().print((level), (1), (__FILE__), (__LINE__), (msg), __VA_ARGS__) +#define LOG_MESSAGE_SIMPLE(level, msg, ...) Log::Get().print((level), (1), (0), (0), (msg), __VA_ARGS__) +#define LOG_APPEND(level, msg, ...) Log::Get().print((level), (0), (0), (0), (msg), __VA_ARGS__) +#else #define LOG_MESSAGE(level, msg, args...) Log::Get().print((level), (1), (__FILE__), (__LINE__), (msg), ##args) #define LOG_MESSAGE_SIMPLE(level, msg, args...) Log::Get().print((level), (1), (0), (0), (msg), ##args) #define LOG_APPEND(level, msg, args...) Log::Get().print((level), (0), (0), (0), (msg), ##args) #endif +#endif class Log {