diff --git a/src/applicationinfo.hpp b/src/applicationinfo.hpp index a5130644..04f16fc1 100644 --- a/src/applicationinfo.hpp +++ b/src/applicationinfo.hpp @@ -1,9 +1,16 @@ #pragma once +#define STR_HELPER(x) #x +#define STR(x) STR_HELPER(x) + // https://docs.microsoft.com/ru-ru/windows/win32/menurc/versioninfo-resource?redirectedfrom=MSDN -#define APP_INFO_PRODUCTVERSION 0,18,2,0 -#define APP_INFO_PRODUCTVERSION_STR "0.18.3" +#define APP_INFO_PRODUCTVERSION_MAJOR 0 +#define APP_INFO_PRODUCTVERSION_MINOR 18 +#define APP_INFO_PRODUCTVERSION_PATCH 2 + +#define APP_INFO_PRODUCTVERSION APP_INFO_PRODUCTVERSION_MAJOR, APP_INFO_PRODUCTVERSION_MINOR, APP_INFO_PRODUCTVERSION_PATCH, 0 +#define APP_INFO_PRODUCTVERSION_STR STR(APP_INFO_PRODUCTVERSION_MAJOR) "." STR(APP_INFO_PRODUCTVERSION_MINOR) "." STR(APP_INFO_PRODUCTVERSION_PATCH) #define APP_INFO_FILEVERSION APP_INFO_PRODUCTVERSION #define APP_INFO_FILEVERSION_STR APP_INFO_PRODUCTVERSION_STR