Mercurial > hg > orthanc
diff Core/Images/JpegWriter.cpp @ 2407:5edec967055e
fix sandboxed builds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Sep 2017 17:02:27 +0200 |
parents | a3a65de1840f |
children | 878b59270859 |
line wrap: on
line diff
--- a/Core/Images/JpegWriter.cpp Wed Sep 20 16:28:27 2017 +0200 +++ b/Core/Images/JpegWriter.cpp Wed Sep 20 17:02:27 2017 +0200 @@ -162,6 +162,7 @@ #endif +#if ORTHANC_SANDBOXED == 0 void JpegWriter::WriteToMemoryInternal(std::string& jpeg, unsigned int width, unsigned int height, @@ -206,4 +207,5 @@ jpeg.assign(reinterpret_cast<const char*>(data), size); free(data); } +#endif }