Commit d56fa23e authored by gabime's avatar gabime

fixed compilation errors

parent 095cb1f5
...@@ -39,7 +39,7 @@ public: ...@@ -39,7 +39,7 @@ public:
} }
virtual ~ansicolor_sink() virtual ~ansicolor_sink()
{ {
flush(); _flush();
} }
...@@ -61,7 +61,7 @@ protected: ...@@ -61,7 +61,7 @@ protected:
{ {
fwrite(msg.formatted.data(), sizeof(char), msg.formatted.size(), target_file_); fwrite(msg.formatted.data(), sizeof(char), msg.formatted.size(), target_file_);
} }
flush(); _flush();
} }
void _flush() override void _flush() override
......
...@@ -32,7 +32,7 @@ protected: ...@@ -32,7 +32,7 @@ protected:
_ostream.flush(); _ostream.flush();
} }
void flush() override void _flush() override
{ {
_ostream.flush(); _ostream.flush();
} }
......
...@@ -33,7 +33,7 @@ protected: ...@@ -33,7 +33,7 @@ protected:
void _sink_it(const details::log_msg& msg) override void _sink_it(const details::log_msg& msg) override
{ {
fwrite(msg.formatted.data(), sizeof(char), msg.formatted.size(), stdout); fwrite(msg.formatted.data(), sizeof(char), msg.formatted.size(), stdout);
flush(); _flush();
} }
void _flush() override void _flush() override
...@@ -62,7 +62,7 @@ protected: ...@@ -62,7 +62,7 @@ protected:
void _sink_it(const details::log_msg& msg) override void _sink_it(const details::log_msg& msg) override
{ {
fwrite(msg.formatted.data(), sizeof(char), msg.formatted.size(), stderr); fwrite(msg.formatted.data(), sizeof(char), msg.formatted.size(), stderr);
flush(); _flush();
} }
void _flush() override void _flush() override
......
...@@ -125,5 +125,5 @@ ...@@ -125,5 +125,5 @@
// Uncomment to enable message counting feature. Adds %i logger pattern that // Uncomment to enable message counting feature. Adds %i logger pattern that
// prints log message sequence id. // prints log message sequence id.
// //
// #define SPDLOG_ENABLE_MESSAGE_COUNTER #define SPDLOG_ENABLE_MESSAGE_COUNTER
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
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