Skip to content

Commit

Permalink
Add LIBXML_TEST_VERSION in main()
Browse files Browse the repository at this point in the history
This checks the ABI version for libxml2.

Issue #219
  • Loading branch information
rakhimov committed Oct 15, 2017
1 parent 7f1755c commit c4be83f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <boost/exception/all.hpp>
#include <boost/program_options.hpp>

#include <libxml/xmlversion.h> // LIBXML_TEST_VERSION

#include "config.h"
#include "error.h"
#include "initializer.h"
Expand Down Expand Up @@ -290,6 +292,8 @@ void RunScram(const po::variables_map& vm) {
/// @returns 0 for success.
/// @returns 1 for errored state.
int main(int argc, char* argv[]) {
LIBXML_TEST_VERSION

try {
// Parse command-line options.
po::variables_map vm;
Expand Down

0 comments on commit c4be83f

Please sign in to comment.