Mercurial > hg > orthanc
diff Core/Images/PngWriter.cpp @ 2170:baf8dd89b4e0
improved support for sandboxed environments
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Nov 2016 11:45:02 +0100 |
parents | fd5875662670 |
children | 35febe19e874 |
line wrap: on
line diff
--- a/Core/Images/PngWriter.cpp Tue Nov 22 15:03:14 2016 +0100 +++ b/Core/Images/PngWriter.cpp Wed Nov 23 11:45:02 2016 +0100 @@ -203,6 +203,7 @@ } +#if ORTHANC_SANDBOXED == 0 void PngWriter::WriteToFileInternal(const std::string& filename, unsigned int width, unsigned int height, @@ -230,7 +231,7 @@ fclose(fp); } - +#endif static void MemoryCallback(png_structp png_ptr,