diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-07-21 18:42:12 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-07-21 18:42:12 (GMT) |
commit | 64547df2dec94632ca8d5dd42b07c22a169b70b7 (patch) | |
tree | fda9acc44173162c3bef5568f609d71ebfedae44 | |
parent | 0d1e43acb1d2d3fe8dcaa97f23449883d267dfe7 (diff) | |
download | lz4-64547df2dec94632ca8d5dd42b07c22a169b70b7.zip lz4-64547df2dec94632ca8d5dd42b07c22a169b70b7.tar.gz lz4-64547df2dec94632ca8d5dd42b07c22a169b70b7.tar.bz2 |
Added : LZ4_versionNumber(), thanks to Takayuki Matsuoka
-rw-r--r-- | lz4.c | 1 | ||||
-rw-r--r-- | lz4.h | 5 |
2 files changed, 4 insertions, 2 deletions
@@ -367,6 +367,7 @@ static int LZ4_NbCommonBytes (register U32 val) /******************************** Compression functions ********************************/ +int LZ4_versionNumber (void) { return LZ4_VERSION_NUMBER; } int LZ4_compressBound(int isize) { return LZ4_COMPRESSBOUND(isize); } static int LZ4_hashSequence(U32 sequence, tableType_t tableType) @@ -42,9 +42,10 @@ extern "C" { Version **************************************/ #define LZ4_VERSION_MAJOR 1 /* for major interface/format changes */ -#define LZ4_VERSION_MINOR 2 /* for minor interface/format changes */ +#define LZ4_VERSION_MINOR 3 /* for minor interface/format changes */ #define LZ4_VERSION_RELEASE 0 /* 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); /************************************** Tuning parameter |