diff options
author | Sean Bright <sean.bright@gmail.com> | 2019-03-08 12:57:59 -0500 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2019-03-12 13:03:34 -0400 |
commit | 76300601d9cb3f8756dd94f0f8a354ff844ae686 (patch) | |
tree | 90decc41adc484e6ec9cf7d4e106cc4630876319 /test/suites/api/Makefile.am | |
parent | f4498d2856fff130366e1dacc74d66d3502e0e5c (diff) | |
download | jansson-76300601d9cb3f8756dd94f0f8a354ff844ae686.zip jansson-76300601d9cb3f8756dd94f0f8a354ff844ae686.tar.gz jansson-76300601d9cb3f8756dd94f0f8a354ff844ae686.tar.bz2 |
Add runtime version checking functions
This patch adds two new exported functions:
* `jansson_version_str` - Returns a human-readable version number
* `jansson_version_cmp` - Returns an integer less than, equal to, or greater
than zero if the runtime version of Jansson is found, respectively, to be
less than, to match, or be greater than the provided major, minor, and micro.
Diffstat (limited to 'test/suites/api/Makefile.am')
-rw-r--r-- | test/suites/api/Makefile.am | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/suites/api/Makefile.am b/test/suites/api/Makefile.am index 63548ac..e109e56 100644 --- a/test/suites/api/Makefile.am +++ b/test/suites/api/Makefile.am @@ -16,7 +16,8 @@ check_PROGRAMS = \ test_pack \ test_simple \ test_sprintf \ - test_unpack + test_unpack \ + test_version test_array_SOURCES = test_array.c util.h test_chaos_SOURCES = test_chaos.c util.h @@ -32,6 +33,7 @@ test_pack_SOURCES = test_pack.c util.h test_simple_SOURCES = test_simple.c util.h test_sprintf_SOURCES = test_sprintf.c util.h test_unpack_SOURCES = test_unpack.c util.h +test_version_SOURCES = test_version.c util.h AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src LDFLAGS = -static # for speed and Valgrind |