Mercurial > hg > orthanc-wsi
diff Framework/Orthanc/Core/Images/IImageWriter.cpp @ 43:9621fd6f17c9
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 17:34:20 +0100 |
parents | 5f4e367f7b0d |
children | 06847108819c |
line wrap: on
line diff
--- a/Framework/Orthanc/Core/Images/IImageWriter.cpp Wed Nov 09 16:03:52 2016 +0100 +++ b/Framework/Orthanc/Core/Images/IImageWriter.cpp Wed Nov 09 17:34:20 2016 +0100 @@ -33,7 +33,14 @@ #include "IImageWriter.h" #include "../OrthancException.h" -#include "../Toolbox.h" + +#if !defined(ORTHANC_SANDBOXED) +# error The macro ORTHANC_SANDBOXED must be defined +#endif + +#if ORTHANC_SANDBOXED == 0 +# include "../SystemToolbox.h" +#endif namespace Orthanc { @@ -47,7 +54,7 @@ #if ORTHANC_SANDBOXED == 0 std::string compressed; WriteToMemoryInternal(compressed, width, height, pitch, format, buffer); - Toolbox::WriteFile(compressed, path); + SystemToolbox::WriteFile(compressed, path); #else throw OrthancException(ErrorCode_CannotWriteFile); // Unavailable in sandboxed environments #endif