diff options
author | Alexey Melnichuk <alexeymelnichuck@gmail.com> | 2019-02-23 11:25:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-23 11:25:48 +0300 |
commit | 52ffc1b40c19332d7ea19eee7f4cd41d423a880a (patch) | |
tree | 381f70400514a1fd4b6cdcdfc41589521e1968d0 /src/win_trace.h | |
parent | ffeb14ded654e1237553c5747e60e6dc6154c4c0 (diff) | |
parent | 6892f237c5289d3980605c23e8a8b046ecaef345 (diff) |
Fixed a handful of warnings with Visual C++ and added some defines
Diffstat (limited to 'src/win_trace.h')
-rw-r--r-- | src/win_trace.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/win_trace.h b/src/win_trace.h index d2e2114..d5e1e5c 100644 --- a/src/win_trace.h +++ b/src/win_trace.h @@ -17,7 +17,13 @@ extern "C" { #endif
#include <windows.h>
-#ifdef NDEBUG
+#if defined(NDEBUG) && (defined(__MINGW32__) || (defined(_MSC_VER) && (_MSC_VER >= 1400)))
+ #define WIN_TRACET(...) do {} while(0)
+ #define WIN_TRACEA(...) do {} while(0)
+ #define WIN_TRACEW(...) do {} while(0)
+ #define WIN_TRACEA_FT(...) do {} while(0)
+ #define WIN_TRACEA_ST(...) do {} while(0)
+#elif defined(NDEBUG) && defined(_MSC_VER) && (_MSC_VER < 1400)
#define WIN_TRACET NOP_FUNCTION
#define WIN_TRACEA NOP_FUNCTION
#define WIN_TRACEW NOP_FUNCTION
|