diff --git a/include/spdlog/version.h b/include/spdlog/version.h index 633cddc78..ab05e8dd4 100644 --- a/include/spdlog/version.h +++ b/include/spdlog/version.h @@ -7,4 +7,5 @@ #define SPDLOG_VER_MINOR 12 #define SPDLOG_VER_PATCH 0 -#define SPDLOG_VERSION (SPDLOG_VER_MAJOR * 10000 + SPDLOG_VER_MINOR * 100 + SPDLOG_VER_PATCH) +#define SPDLOG_TO_VERSION(major, minor, patch) (major * 10000 + minor * 100 + patch) +#define SPDLOG_VERSION SPDLOG_TO_VERSION(SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH)