From ff0b8afbb83dbfa5707d21a06a110102358414d6 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 3 Mar 2021 22:35:34 +0100 Subject: [PATCH] replace C99 style #if defined() with C++ --- pEpLog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pEpLog.cc b/pEpLog.cc index cfaa083..08af695 100644 --- a/pEpLog.cc +++ b/pEpLog.cc @@ -27,7 +27,7 @@ bool get_enabled() { void log(std::string msg) { if (is_enabled.load()) { std::lock_guard l(mtx); - #if defined(ANDROID) && !defined(NDEBUG) + #ifdef ANDROID __android_log_print(ANDROID_LOG_DEBUG, "pEpDebugLog", "%s", msg.c_str()); #else std::cout << msg << std::endl; //std::endl also flushes