aboutsummaryrefslogtreecommitdiff
path: root/external/easylogging++/easylogging++.h
diff options
context:
space:
mode:
authorston1th <ston1th@giftfish.de>2017-12-09 10:01:31 +0100
committerston1th <ston1th@giftfish.de>2017-12-09 10:01:31 +0100
commit5cc8469332c800e6cd4aea4db5a9aef77251263b (patch)
tree67b41ea675cb3a861bf38834f965640f213c04f8 /external/easylogging++/easylogging++.h
parentMerge pull request #2883 (diff)
downloadmonero-5cc8469332c800e6cd4aea4db5a9aef77251263b.tar.xz
easylogging: show the 'no stack trace' warning only once
If execinfo.h is not available, output the stack trace warning only once, so we don't spam the build logs with it.
Diffstat (limited to 'external/easylogging++/easylogging++.h')
-rw-r--r--external/easylogging++/easylogging++.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/external/easylogging++/easylogging++.h b/external/easylogging++/easylogging++.h
index 469cf9eec..3270bd607 100644
--- a/external/easylogging++/easylogging++.h
+++ b/external/easylogging++/easylogging++.h
@@ -203,16 +203,17 @@ ELPP_INTERNAL_DEBUGGING_OUT_INFO << ELPP_INTERNAL_DEBUGGING_MSG(internalInfoStre
# if (ELPP_COMPILER_GCC && !ELPP_MINGW && !ELPP_OS_OPENBSD)
# define ELPP_STACKTRACE 1
# else
-# define ELPP_STACKTRACE 0
+# define ELPP_STACKTRACE 0
+# ifdef EASYLOGGING_CC
# if ELPP_COMPILER_MSVC
-# pragma message("Stack trace not available for this compiler")
+# pragma message("Stack trace not available for this compiler")
# else
-# warning "Stack trace not available for this compiler";
+# warning "Stack trace not available for this compiler";
# endif // ELPP_COMPILER_MSVC
-# define ELPP_STACKTRACE 0
+# endif
# endif // ELPP_COMPILER_GCC
#else
-# define ELPP_STACKTRACE 0
+# define ELPP_STACKTRACE 0
#endif // (defined(ELPP_FEATURE_ALL)) || (defined(ELPP_FEATURE_CRASH_LOG))
// Miscellaneous macros
#define ELPP_UNUSED(x) (void)x