Skip to content

Commit

Permalink
Merge pull request #10 from sameeul/fix_multiscale_metadata
Browse files Browse the repository at this point in the history
Fix for JSON initialization issue in Clang
  • Loading branch information
sameeul authored Jan 31, 2024
2 parents bf697a8 + a251860 commit f8a9895
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ome_tiff_to_chunked_pyramid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ void OmeTiffToChunkedPyramid::WriteTSZattrFile(const std::string& tiff_file_name
combined_metadata["name"] = tiff_file_name;
combined_metadata["metadata"] = {{"method", "mean"}};
json final_formated_metadata;
#ifdef _WIN32
#if defined(__clang__) || defined(_MSC_VER)
// more details here: https://github.com/nlohmann/json/issues/2311
final_formated_metadata["multiscales"][0] = {combined_metadata};
#else
final_formated_metadata["multiscales"] = {combined_metadata};
Expand Down

0 comments on commit f8a9895

Please sign in to comment.