From f70670d26c9f6f2c80cde4b30fb19a26adb4fdff Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 13 Jan 2024 10:32:55 +0200 Subject: [PATCH] Removed SPDLOG_EOL define --- include/spdlog/details/os.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/include/spdlog/details/os.h b/include/spdlog/details/os.h index 82f3a900..b17d8486 100644 --- a/include/spdlog/details/os.h +++ b/include/spdlog/details/os.h @@ -22,16 +22,12 @@ SPDLOG_API std::tm gmtime(const std::time_t &time_tt) noexcept; SPDLOG_API std::tm gmtime() noexcept; // eol definition -#if !defined(SPDLOG_EOL) - #ifdef _WIN32 - #define SPDLOG_EOL "\r\n" - #else - #define SPDLOG_EOL "\n" - #endif +#ifdef _WIN32 + constexpr static const char *default_eol = "\r\n"; +#else + constexpr static const char *default_eol = "\n"; #endif -constexpr static const char *default_eol = SPDLOG_EOL; - // folder separator #if !defined(SPDLOG_FOLDER_SEPS) #ifdef _WIN32