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

Fix build on older GCC

parent df71dafe
......@@ -23,6 +23,7 @@
#include <thread>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <condition_variable>
......@@ -161,7 +162,7 @@ logger::stream& logger::stream::operator<<(const char* cstr) {
return *this;
}
m_buf << cstr;
if (cstr[strlen(cstr) - 1] == '\n') {
if (cstr[std::strlen(cstr) - 1] == '\n') {
flush();
}
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