Fix atomic level

This commit is contained in:
gabime
2023-09-23 00:42:36 +03:00
parent 3a405ba958
commit 31a7dc6e1e
4 changed files with 12 additions and 12 deletions

View File

@@ -173,9 +173,9 @@ enum class log_level
};
#if defined(SPDLOG_NO_ATOMIC_LEVELS)
using level_t = details::null_atomic_log_level;
using atomic_level_t = details::null_atomic<log_level>;
#else
using level_t = std::atomic<log_level>;
using atomic_level_t = std::atomic<log_level>;
#endif
#if !defined(SPDLOG_LEVEL_NAMES)