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.
This commit is contained in:
Sean Bright
2019-03-08 12:57:59 -05:00
parent f4498d2856
commit 76300601d9
8 changed files with 122 additions and 2 deletions

1
test/.gitignore vendored
View File

@@ -17,6 +17,7 @@ suites/api/test_pack
suites/api/test_simple
suites/api/test_sprintf
suites/api/test_unpack
suites/api/test_version
run-suites.log
run-suites.trs
test-suite.log