diff --git a/include/spdlog/common.h b/include/spdlog/common.h index 6edd6fa9..830220ef 100644 --- a/include/spdlog/common.h +++ b/include/spdlog/common.h @@ -62,7 +62,7 @@ #endif #ifndef SPDLOG_FUNCTION -#define SPDLOG_FUNCTION __FUNCTION__ +#define SPDLOG_FUNCTION static_cast(__FUNCTION__) #endif #ifdef SPDLOG_NO_EXCEPTIONS