Browse Source

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

pull/6/head Release_2.1.8
heck 9 months ago
parent
commit
ff0b8afbb8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pEpLog.cc

+ 1
- 1
pEpLog.cc View File

@ -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