21 #include <winpr/config.h>
23 #include <winpr/buildflags.h>
27 #include <winpr/crt.h>
28 #include <winpr/string.h>
29 #include <winpr/winpr.h>
30 #include <winpr/version.h>
31 #include <winpr/wlog.h>
37 void winpr_get_version(
int* major,
int* minor,
int* revision)
40 *major = WINPR_VERSION_MAJOR;
42 *minor = WINPR_VERSION_MINOR;
44 *revision = WINPR_VERSION_REVISION;
47 const char* winpr_get_version_string(
void)
49 return WINPR_VERSION_FULL;
52 const char* winpr_get_build_revision(
void)
54 return WINPR_GIT_REVISION;
57 const char* winpr_get_build_config(
void)
59 static const char build_config[] =
60 "Build configuration: " WINPR_BUILD_CONFIG
"\n"
61 "Build type: " WINPR_BUILD_TYPE
"\n"
62 "CFLAGS: " WINPR_CFLAGS
"\n"
63 "Compiler: " WINPR_COMPILER_ID
", " WINPR_COMPILER_VERSION
"\n"
64 "Target architecture: " WINPR_TARGET_ARCH
"\n";