Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Melnichuk <alexeymelnichuck@gmail.com>2019-02-23 11:25:48 +0300
committerGitHub <noreply@github.com>2019-02-23 11:25:48 +0300
commit52ffc1b40c19332d7ea19eee7f4cd41d423a880a (patch)
tree381f70400514a1fd4b6cdcdfc41589521e1968d0 /src/win_trace.h
parentffeb14ded654e1237553c5747e60e6dc6154c4c0 (diff)
parent6892f237c5289d3980605c23e8a8b046ecaef345 (diff)
Merge pull request #4 from windirstat/warning-fixupsHEADmaster
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.h8
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