diff --git a/include/spdlog/details/registry.h b/include/spdlog/details/registry.h index cb4f5a7e..9c386ced 100644 --- a/include/spdlog/details/registry.h +++ b/include/spdlog/details/registry.h @@ -169,10 +169,10 @@ private: async_overflow_policy _overflow_policy = async_overflow_policy::block_retry; std::function _worker_warmup_cb = nullptr; }; -#ifndef SPDLOG_NO_REGISTRY_MUTEX -typedef registry_t registry; -#else +#ifdef SPDLOG_NO_REGISTRY_MUTEX typedef registry_t registry; +#else +typedef registry_t registry; #endif } }