Browse Source

replace C99 style #if defined() with C++

pull/6/head Release_2.1.8
heck 4 years ago
parent
commit
ff0b8afbb8
  1. 2
      pEpLog.cc

2
pEpLog.cc

@ -27,7 +27,7 @@ bool get_enabled() {
void log(std::string msg) {
if (is_enabled.load()) {
std::lock_guard<std::mutex> 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

Loading…
Cancel
Save