Conditional inclusion of libunwind.h didn't properly depend on definition
of BUILD_TYPE_DEBUG. But only debug build checks for libunwind dependency.
Change-Id: I2158d09ae2880e9869246d75049aa1f23b8c4bcc
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
#ifndef SRC_COMMON_LOG_BACKTRACE_H_
#define SRC_COMMON_LOG_BACKTRACE_H_
-#ifndef CYNARA_NO_LOGS
+#if defined(BUILD_TYPE_DEBUG) && !defined(CYNARA_NO_LOGS)
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#endif
void operator=(Backtrace const &) = delete;
const std::string buildBacktrace(void);
-#ifndef CYNARA_NO_LOGS
+#if defined(BUILD_TYPE_DEBUG) && !defined(CYNARA_NO_LOGS)
void getSourceInfo(unw_word_t proc_address);
#endif