Skip to content

Commit

Permalink
Merge ad40778 into aef643b
Browse files Browse the repository at this point in the history
  • Loading branch information
bp-kelley committed Sep 12, 2017
2 parents aef643b + ad40778 commit 166d0e5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/freesasa.c
Expand Up @@ -210,12 +210,18 @@ freesasa_tree_export(FILE *file,
count_err(freesasa_write_rsa(file, root, options), &n_err);
}
if (options & FREESASA_JSON) {
if (USE_JSON) count_err(freesasa_write_json(file, root, options), &n_err);
else return fail_msg("library was built without support for JSON output");
#if USE_JSON
count_err(freesasa_write_json(file, root, options), &n_err);
#else
return fail_msg("library was built without support for JSON output");
#endif
}
if (options & FREESASA_XML) {
if (USE_XML) count_err(freesasa_write_xml(file, root, options), &n_err);
else return fail_msg("library was built without support for XML output");
#if USE_XML
count_err(freesasa_write_xml(file, root, options), &n_err);
#else
return fail_msg("library was built without support for XML output");
#endif
}
if (n_err > 0) {
return fail_msg("there were errors when writing output");
Expand Down

0 comments on commit 166d0e5

Please sign in to comment.