Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Sep 17, 2024
1 parent e08bdfd commit a3a31ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions XWBTool/CmdLineHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
#include <set>
#include <string>

#ifndef TOOL_VERSION
#error Define TOOL_VERSION before including this header
#endif


namespace Helpers
{
Expand Down Expand Up @@ -162,9 +166,9 @@ namespace Helpers
}
}

if (!*version)
if (!*version || wcscmp(version, L"1.0.0.0") == 0)
{
wcscpy_s(version, L"MISSING");
swprintf_s(version, L"%03d (library)", TOOL_VERSION);
}

if (versionOnly)
Expand Down
2 changes: 2 additions & 0 deletions XWBTool/xwbtool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
#include <vector>

#include "WAVFileReader.h"

#define TOOL_VERSION 0
#include "CmdLineHelpers.h"

using namespace Helpers;
Expand Down

0 comments on commit a3a31ce

Please sign in to comment.