diff options
| author | a1xd <[email protected]> | 2020-12-02 05:25:19 -0500 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-12-02 05:25:19 -0500 |
| commit | 7d14daf1d5fce4d09471a3abe2aca49cf7680816 (patch) | |
| tree | 43411443aadc79d36ad1da8063208cd51fdb15fe /common/rawaccel-version.h | |
| parent | merge common-install with common (diff) | |
| download | rawaccel-7d14daf1d5fce4d09471a3abe2aca49cf7680816.tar.xz rawaccel-7d14daf1d5fce4d09471a3abe2aca49cf7680816.zip | |
embed version info into assemblies
check app versions against lib, lib against driver
add an 'about' dialog which displays version details, accessible from menu
refactor error handling + add check for negative offset
Diffstat (limited to 'common/rawaccel-version.h')
| -rw-r--r-- | common/rawaccel-version.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/common/rawaccel-version.h b/common/rawaccel-version.h new file mode 100644 index 0000000..c9828a0 --- /dev/null +++ b/common/rawaccel-version.h @@ -0,0 +1,26 @@ +#pragma once + +#define RA_VER_MAJOR 1 +#define RA_VER_MINOR 3 +#define RA_VER_PATCH 0 + +#define RA_MIN_OS "Win10" + +#define M_STR_HELPER(x) #x +#define M_STR(x) M_STR_HELPER(x) + +#define RA_VER_STRING M_STR(RA_VER_MAJOR) "." M_STR(RA_VER_MINOR) "." M_STR(RA_VER_PATCH) + +namespace rawaccel { + + struct version_t { + int major; + int minor; + int patch; + }; + +#ifndef _KERNEL_MODE + inline constexpr version_t min_driver_version = { 1, 3, 0 }; +#endif + +} |