\r
const std::wstring& version()\r
{\r
- static std::wstring ver = std::wstring(L"") + CASPAR_GEN + L"." + CASPAR_MAYOR + L"." + CASPAR_MINOR + L"." + CASPAR_REV + L" " + CASPAR_TAG;\r
+ static std::wstring ver = widen(\r
+ EXPAND_AND_QUOTE(CASPAR_GEN) "." \r
+ EXPAND_AND_QUOTE(CASPAR_MAYOR) "." \r
+ EXPAND_AND_QUOTE(CASPAR_MINOR) "." \r
+ EXPAND_AND_QUOTE(CASPAR_REV) " " \r
+ CASPAR_TAG);\r
return ver;\r
}\r
\r
-#define CASPAR_GEN L"2"\r
-#define CASPAR_MAYOR L"1"\r
-#define CASPAR_MINOR L"0"\r
-#define CASPAR_REV L"$WCREV$"\r
+#define CASPAR_GEN 2\r
+#define CASPAR_MAYOR 1\r
+#define CASPAR_MINOR 0\r
+#define CASPAR_REV $WCREV$\r
#define CASPAR_TAG L"UNSTABLE"\r