Relative include paths in headers

This commit is contained in:
gabime 2023-09-28 23:45:45 +03:00
parent c1ffe29b7e
commit a3934472c9
20 changed files with 41 additions and 41 deletions

View File

@ -14,9 +14,9 @@
// This is because each message in the queue holds a shared_ptr to the // This is because each message in the queue holds a shared_ptr to the
// originating logger. // originating logger.
#include <spdlog/async_logger.h> #include "async_logger.h"
#include <spdlog/details/registry.h> #include "details/registry.h"
#include <spdlog/details/thread_pool.h> #include "details/thread_pool.h"
#include <functional> #include <functional>
#include <memory> #include <memory>

View File

@ -12,9 +12,9 @@
// 2. Push a new copy of the message to a queue (or block the caller until // 2. Push a new copy of the message to a queue (or block the caller until
// space is available in the queue) // space is available in the queue)
// Upon destruction, logs all remaining messages in the queue before // Upon destruction, logs all remaining messages in the queue before
// destructing.. // destructing
#include <spdlog/logger.h> #include "logger.h"
namespace spdlog { namespace spdlog {

View File

@ -2,8 +2,8 @@
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once #pragma once
#include <spdlog/cfg/helpers.h> #include "helpers.h"
#include <spdlog/details/registry.h> #include "../details/registry.h"
// //
// Init log levels using each argv entry that starts with "SPDLOG_LEVEL=" // Init log levels using each argv entry that starts with "SPDLOG_LEVEL="

View File

@ -2,9 +2,9 @@
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once #pragma once
#include <spdlog/cfg/helpers.h> #include "helpers.h"
#include <spdlog/details/os.h> #include "../details/os.h"
#include <spdlog/details/registry.h> #include "../details/registry.h"
// //
// Init levels and patterns from env variables SPDLOG_LEVEL // Init levels and patterns from env variables SPDLOG_LEVEL

View File

@ -3,7 +3,7 @@
#pragma once #pragma once
#include <spdlog/common.h> #include "../common.h"
#include <unordered_map> #include <unordered_map>
namespace spdlog { namespace spdlog {

View File

@ -2,8 +2,8 @@
// Distributed under the MIT License (http://opensource.org/licenses/MIT) // Distributed under the MIT License (http://opensource.org/licenses/MIT)
#pragma once #pragma once
#include <spdlog/details/null_mutex.h> #include "details/null_mutex.h"
#include <spdlog/tweakme.h> #include "tweakme.h"
#include <array> #include <array>
#include <atomic> #include <atomic>
@ -51,13 +51,13 @@
#define SPDLOG_API #define SPDLOG_API
#endif #endif
#include <spdlog/fmt/fmt.h> #include "fmt/fmt.h"
#if !defined(SPDLOG_USE_STD_FORMAT) && \ #if !defined(SPDLOG_USE_STD_FORMAT) && \
FMT_VERSION >= 80000 // backward compatibility with fmt versions older than 8 FMT_VERSION >= 80000 // backward compatibility with fmt versions older than 8
#define SPDLOG_FMT_RUNTIME(format_string) fmt::runtime(format_string) #define SPDLOG_FMT_RUNTIME(format_string) fmt::runtime(format_string)
#if defined(SPDLOG_WCHAR_FILENAMES) #if defined(SPDLOG_WCHAR_FILENAMES)
#include <spdlog/fmt/xchar.h> #include "fmt/xchar.h"
#endif #endif
#else #else
#define SPDLOG_FMT_RUNTIME(format_string) format_string #define SPDLOG_FMT_RUNTIME(format_string) format_string

View File

@ -6,10 +6,10 @@
// Helper RAII over winsock udp client socket. // Helper RAII over winsock udp client socket.
// Will throw on construction if socket creation failed. // Will throw on construction if socket creation failed.
#include "../common.h"
#include "os.h" #include "os.h"
#include "windows_include.h"
#include "../common.h"
#include <spdlog/details/windows_include.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string> #include <string>

View File

@ -6,7 +6,7 @@
#pragma once #pragma once
#include <cctype> #include <cctype>
#include <spdlog/common.h> #include "../common.h"
#if defined(__has_include) #if defined(__has_include)
#if __has_include(<version>) #if __has_include(<version>)

View File

@ -10,7 +10,7 @@
#if !defined(SPDLOG_USE_STD_FORMAT) #if !defined(SPDLOG_USE_STD_FORMAT)
#if !defined(SPDLOG_FMT_EXTERNAL) #if !defined(SPDLOG_FMT_EXTERNAL)
#include <spdlog/fmt/bundled/chrono.h> #include "../fmt/bundled/chrono.h"
#else #else
#include <fmt/chrono.h> #include <fmt/chrono.h>
#endif #endif

View File

@ -10,7 +10,7 @@
#if !defined(SPDLOG_USE_STD_FORMAT) #if !defined(SPDLOG_USE_STD_FORMAT)
#if !defined(SPDLOG_FMT_EXTERNAL) #if !defined(SPDLOG_FMT_EXTERNAL)
#include <spdlog/fmt/bundled/compile.h> #include "../fmt/bundled/compile.h"
#else #else
#include <fmt/compile.h> #include <fmt/compile.h>
#endif #endif

View File

@ -13,8 +13,8 @@
#if defined(SPDLOG_USE_STD_FORMAT) // SPDLOG_USE_STD_FORMAT is defined - use std::format #if defined(SPDLOG_USE_STD_FORMAT) // SPDLOG_USE_STD_FORMAT is defined - use std::format
#include <format> #include <format>
#elif !defined(SPDLOG_FMT_EXTERNAL) #elif !defined(SPDLOG_FMT_EXTERNAL)
#include <spdlog/fmt/bundled/core.h> #include "bundled/core.h"
#include <spdlog/fmt/bundled/format.h> #include "bundled/format.h"
#else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib #else // SPDLOG_FMT_EXTERNAL is defined - use external fmtlib
#include <fmt/core.h> #include <fmt/core.h>
#include <fmt/format.h> #include <fmt/format.h>

View File

@ -10,7 +10,7 @@
#if !defined(SPDLOG_USE_STD_FORMAT) #if !defined(SPDLOG_USE_STD_FORMAT)
#if !defined(SPDLOG_FMT_EXTERNAL) #if !defined(SPDLOG_FMT_EXTERNAL)
#include <spdlog/fmt/bundled/ostream.h> #include "../fmt/bundled/ostream.h"
#else #else
#include <fmt/ostream.h> #include <fmt/ostream.h>
#endif #endif

View File

@ -10,7 +10,7 @@
#if !defined(SPDLOG_USE_STD_FORMAT) #if !defined(SPDLOG_USE_STD_FORMAT)
#if !defined(SPDLOG_FMT_EXTERNAL) #if !defined(SPDLOG_FMT_EXTERNAL)
#include <spdlog/fmt/bundled/ranges.h> #include "../fmt/bundled/ranges.h"
#else #else
#include <fmt/ranges.h> #include <fmt/ranges.h>
#endif #endif

View File

@ -11,7 +11,7 @@
#if !defined(SPDLOG_USE_STD_FORMAT) #if !defined(SPDLOG_USE_STD_FORMAT)
#if !defined(SPDLOG_FMT_EXTERNAL) #if !defined(SPDLOG_FMT_EXTERNAL)
#include <spdlog/fmt/bundled/std.h> #include "../fmt/bundled/std.h"
#else #else
#include <fmt/std.h> #include <fmt/std.h>
#endif #endif

View File

@ -10,7 +10,7 @@
#if !defined(SPDLOG_USE_STD_FORMAT) #if !defined(SPDLOG_USE_STD_FORMAT)
#if !defined(SPDLOG_FMT_EXTERNAL) #if !defined(SPDLOG_FMT_EXTERNAL)
#include <spdlog/fmt/bundled/xchar.h> #include "../fmt/bundled/xchar.h"
#else #else
#include <fmt/xchar.h> #include <fmt/xchar.h>
#endif #endif

View File

@ -3,8 +3,8 @@
#pragma once #pragma once
#include <spdlog/details/log_msg.h> #include "details/log_msg.h"
#include <spdlog/fmt/fmt.h> #include "fmt/fmt.h"
namespace spdlog { namespace spdlog {

View File

@ -14,9 +14,9 @@
// The use of private formatter per sink provides the opportunity to cache some // The use of private formatter per sink provides the opportunity to cache some
// formatted data, and support for different format per sink. // formatted data, and support for different format per sink.
#include <spdlog/common.h> #include "common.h"
#include <spdlog/details/log_msg.h> #include "details/log_msg.h"
#include <spdlog/sinks/sink.h> #include "sinks/sink.h"
#include <cassert> #include <cassert>
#include <vector> #include <vector>

View File

@ -3,10 +3,10 @@
#pragma once #pragma once
#include <spdlog/common.h> #include "common.h"
#include <spdlog/details/log_msg.h> #include "details/log_msg.h"
#include <spdlog/details/os.h> #include "details/os.h"
#include <spdlog/formatter.h> #include "formatter.h"
#include <chrono> #include <chrono>
#include <ctime> #include <ctime>

View File

@ -9,11 +9,11 @@
#pragma once #pragma once
#include <spdlog/common.h> #include "common.h"
#include <spdlog/details/registry.h> #include "logger.h"
#include <spdlog/details/synchronous_factory.h> #include "version.h"
#include <spdlog/logger.h> #include "details/registry.h"
#include <spdlog/version.h> #include "details/synchronous_factory.h"
#include <chrono> #include <chrono>
#include <functional> #include <functional>

View File

@ -4,7 +4,7 @@
#pragma once #pragma once
#include <chrono> #include <chrono>
#include <spdlog/fmt/fmt.h> #include "fmt/fmt.h"
// Stopwatch support for spdlog (using std::chrono::steady_clock). // Stopwatch support for spdlog (using std::chrono::steady_clock).
// Displays elapsed seconds since construction as double. // Displays elapsed seconds since construction as double.