summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-07-21 18:42:12 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-07-21 18:42:12 (GMT)
commit64547df2dec94632ca8d5dd42b07c22a169b70b7 (patch)
treefda9acc44173162c3bef5568f609d71ebfedae44
parent0d1e43acb1d2d3fe8dcaa97f23449883d267dfe7 (diff)
downloadlz4-64547df2dec94632ca8d5dd42b07c22a169b70b7.zip
lz4-64547df2dec94632ca8d5dd42b07c22a169b70b7.tar.gz
lz4-64547df2dec94632ca8d5dd42b07c22a169b70b7.tar.bz2
Added : LZ4_versionNumber(), thanks to Takayuki Matsuoka
-rw-r--r--lz4.c1
-rw-r--r--lz4.h5
2 files changed, 4 insertions, 2 deletions
diff --git a/lz4.c b/lz4.c
index 2484fc6..d58be27 100644
--- a/lz4.c
+++ b/lz4.c
@@ -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)
diff --git a/lz4.h b/lz4.h
index 2e90f04..f8327f0 100644
--- a/lz4.h
+++ b/lz4.h
@@ -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