Skip to content

Commit

Permalink
Fix build on super old imagemagicks
Browse files Browse the repository at this point in the history
Fixes #371
  • Loading branch information
jeroen committed Nov 1, 2023
1 parent fadff98 commit 697de22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ Rcpp::String set_magick_tempdir(const char * new_tmpdir){

// [[Rcpp::export]]
void set_magick_seed(unsigned long seed){
#if MagickLibVersion >= 0x694
Magick::SetRandomSeed(seed);
#endif
}

0 comments on commit 697de22

Please sign in to comment.