From b5224130854e2363c9e5e95f135e510df0eba6f5 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 16 Nov 2018 10:07:31 +0200 Subject: [PATCH] Replaced SPDLOG_DISABLE_TID_CACHING with SPDLOG_NO_TLS --- include/spdlog/common.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 0ce54a9b..1c1da08b 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -41,6 +41,13 @@ #define SPDLOG_DEPRECATED #endif +// disable thread local on msvc 2013 +#ifndef SPDLOG_NO_TLS +#if (defined(_MSC_VER) && (_MSC_VER < 1900)) +#define SPDLOG_NO_TLS 1 +#endif +#endif + #include "spdlog/fmt/fmt.h" namespace spdlog {