diff options
author | John Zhuge <jzhuge@cloudera.com> | 2016-03-30 23:33:17 (GMT) |
---|---|---|
committer | John Zhuge <jzhuge@cloudera.com> | 2016-04-01 14:07:25 (GMT) |
commit | cf6652f9b91593b5d48588e4ed8105669375f110 (patch) | |
tree | e2bed7b09b33f71424566a2a0b585e2ad39c5057 /lib/lz4.h | |
parent | 60ba8638cdd255eef787a222374bb8b11779e970 (diff) | |
download | lz4-cf6652f9b91593b5d48588e4ed8105669375f110.zip lz4-cf6652f9b91593b5d48588e4ed8105669375f110.tar.gz lz4-cf6652f9b91593b5d48588e4ed8105669375f110.tar.bz2 |
lz4cli: print library version
Diffstat (limited to 'lib/lz4.h')
-rw-r--r-- | lib/lz4.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -50,9 +50,16 @@ extern "C" { #define LZ4_VERSION_MAJOR 1 /* for breaking interface changes */ #define LZ4_VERSION_MINOR 7 /* for new (non-breaking) interface capabilities */ #define LZ4_VERSION_RELEASE 2 /* for tweaks, bug-fixes, or development */ + #define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE) int LZ4_versionNumber (void); +#define LZ4_STR(str) #str +#define LZ4_XSTR(str) LZ4_STR(str) +#define LZ4_VERSION_STRING LZ4_XSTR(LZ4_VERSION_MAJOR) "." \ + LZ4_XSTR(LZ4_VERSION_MINOR) "." LZ4_XSTR(LZ4_VERSION_RELEASE) +const char* LZ4_versionString (void); + /************************************** * Tuning parameter **************************************/ |