From 13fb2550c68b3bb02bd7e422f9bd2523bf91c104 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 21 May 2017 20:39:54 +0300 Subject: [PATCH] Fixed issue #449 --- example/example.cpp | 2 +- include/spdlog/sinks/android_sink.h | 2 +- include/spdlog/sinks/ansicolor_sink.h | 6 +++--- include/spdlog/sinks/dist_sink.h | 8 ++++---- include/spdlog/sinks/msvc_sink.h | 4 ++-- include/spdlog/sinks/null_sink.h | 4 ++-- include/spdlog/sinks/ostream_sink.h | 4 ++-- include/spdlog/sinks/syslog_sink.h | 6 +++--- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/example/example.cpp b/example/example.cpp index 4a9ffc6f..4482e9d7 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -143,7 +143,7 @@ struct my_type } }; -#include // must be included +#include "spdlog/fmt/ostr.h" // must be included void user_defined_example() { spd::get("console")->info("user defined type: {}", my_type { 14 }); diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index be2d3ad8..239f2d28 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -7,7 +7,7 @@ #if defined(__ANDROID__) -#include +#include "spdlog/sinks/sink.h" #include #include diff --git a/include/spdlog/sinks/ansicolor_sink.h b/include/spdlog/sinks/ansicolor_sink.h index b9a85d50..7d00a613 100644 --- a/include/spdlog/sinks/ansicolor_sink.h +++ b/include/spdlog/sinks/ansicolor_sink.h @@ -5,9 +5,9 @@ #pragma once -#include -#include -#include +#include "spdlog/sinks/base_sink.h" +#include "spdlog/common.h" +#include "spdlog/details/os.h" #include #include diff --git a/include/spdlog/sinks/dist_sink.h b/include/spdlog/sinks/dist_sink.h index b1d35d2c..8cff0c1d 100644 --- a/include/spdlog/sinks/dist_sink.h +++ b/include/spdlog/sinks/dist_sink.h @@ -5,10 +5,10 @@ #pragma once -#include -#include -#include -#include +#include "spdlog/details/log_msg.h" +#include "spdlog/details/null_mutex.h" +#include "spdlog/sinks/base_sink.h" +#include "spdlog/sinks/sink.h" #include #include diff --git a/include/spdlog/sinks/msvc_sink.h b/include/spdlog/sinks/msvc_sink.h index 1b6c880f..619f08bf 100644 --- a/include/spdlog/sinks/msvc_sink.h +++ b/include/spdlog/sinks/msvc_sink.h @@ -7,8 +7,8 @@ #if defined(_MSC_VER) -#include -#include +#include "spdlog/sinks/base_sink.h" +#include "spdlog/details/null_mutex.h" #include diff --git a/include/spdlog/sinks/null_sink.h b/include/spdlog/sinks/null_sink.h index 8ae21fc2..ed4b5e47 100644 --- a/include/spdlog/sinks/null_sink.h +++ b/include/spdlog/sinks/null_sink.h @@ -5,8 +5,8 @@ #pragma once -#include -#include +#include "spdlog/sinks/base_sink.h" +#include "spdlog/details/null_mutex.h" #include diff --git a/include/spdlog/sinks/ostream_sink.h b/include/spdlog/sinks/ostream_sink.h index 2fa78acf..f056107f 100644 --- a/include/spdlog/sinks/ostream_sink.h +++ b/include/spdlog/sinks/ostream_sink.h @@ -5,8 +5,8 @@ #pragma once -#include -#include +#include "spdlog/details/null_mutex.h" +#include "spdlog/sinks/base_sink.h" #include #include diff --git a/include/spdlog/sinks/syslog_sink.h b/include/spdlog/sinks/syslog_sink.h index 0d8633c5..0b509c4a 100644 --- a/include/spdlog/sinks/syslog_sink.h +++ b/include/spdlog/sinks/syslog_sink.h @@ -5,12 +5,12 @@ #pragma once -#include +#include "spdlog/common.h" #ifdef SPDLOG_ENABLE_SYSLOG -#include -#include +#include "spdlog/sinks/sink.h" +#include "spdlog/details/log_msg.h" #include #include