From ff3d866728083627be80c6c4d5ca3b501ca136c8 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 24 Jul 2024 16:30:58 +0000 Subject: [PATCH] feat [skip ci]: update single_include --- single_include/toml.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/single_include/toml.hpp b/single_include/toml.hpp index a4519ef..89b5f1d 100644 --- a/single_include/toml.hpp +++ b/single_include/toml.hpp @@ -2933,6 +2933,12 @@ TOML11_INLINE std::ostream& operator<<(std::ostream& os, const preserve_comments #define TOML11_ERROR_MESSAGE_COLORIZED false #endif +#ifdef TOML11_USE_THREAD_LOCAL_COLORIZATION +#define TOML11_THREAD_LOCAL_COLORIZATION thread_local +#else +#define TOML11_THREAD_LOCAL_COLORIZATION +#endif + namespace toml { namespace color @@ -2968,7 +2974,7 @@ class color_mode inline color_mode& color_status() noexcept { - static thread_local color_mode status; + static TOML11_THREAD_LOCAL_COLORIZATION color_mode status; return status; }