Skip to content

Commit

Permalink
リリースビルド時にバージョン文字列末尾に空白が入る問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kobake authored and m-tmatma committed Jun 25, 2018
1 parent 9ece000 commit 25619c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sakura_core/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
#define VER_CONFIG ""
#endif

#ifdef _DEBUG
#define SPACE_WHEN_DEBUG " "
#else
#define SPACE_WHEN_DEBUG ""
#endif

// リソース埋め込み用バージョン文字列
// e.g. "2.3.2.0 (4a0de579) UNICODE 64bit DEBUG"
#define RESOURCE_VERSION_STRING(_VersionString) _VersionString " (" GIT_SHORT_COMMIT_HASH ") " VER_CHARSET " " VER_PLATFORM " " VER_CONFIG
// e.g. "2.3.2.0 (4a0de579) UNICODE 64bit"
#define RESOURCE_VERSION_STRING(_VersionString) _VersionString " (" GIT_SHORT_COMMIT_HASH ") " VER_CHARSET " " VER_PLATFORM SPACE_WHEN_DEBUG VER_CONFIG

0 comments on commit 25619c0

Please sign in to comment.