4 #include <winpr/version.h>
5 #include <winpr/winpr.h>
7 int TestVersion(
int argc,
char* argv[])
9 const char* version = NULL;
10 const char* git = NULL;
11 const char* build = NULL;
17 winpr_get_version(&major, &minor, &revision);
19 if (major != WINPR_VERSION_MAJOR)
22 if (minor != WINPR_VERSION_MINOR)
25 if (revision != WINPR_VERSION_REVISION)
28 version = winpr_get_version_string();
33 git = winpr_get_build_revision();
38 if (strncmp(git, WINPR_GIT_REVISION,
sizeof(WINPR_GIT_REVISION)) != 0)
41 build = winpr_get_build_config();