Commit 87b82098 authored by Marian Triebe's avatar Marian Triebe

Fix build on older GCC

parent df71dafe
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <thread> #include <thread>
#include <cassert> #include <cassert>
#include <cstdlib> #include <cstdlib>
#include <cstring>
#include <algorithm> #include <algorithm>
#include <condition_variable> #include <condition_variable>
...@@ -161,7 +162,7 @@ logger::stream& logger::stream::operator<<(const char* cstr) { ...@@ -161,7 +162,7 @@ logger::stream& logger::stream::operator<<(const char* cstr) {
return *this; return *this;
} }
m_buf << cstr; m_buf << cstr;
if (cstr[strlen(cstr) - 1] == '\n') { if (cstr[std::strlen(cstr) - 1] == '\n') {
flush(); flush();
} }
return *this; return *this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment