diff Core/Images/PngReader.cpp @ 2171:35febe19e874

improved support for sandboxed environments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Nov 2016 11:46:42 +0100
parents baf8dd89b4e0
children a3a65de1840f
line wrap: on
line diff
--- a/Core/Images/PngReader.cpp	Wed Nov 23 11:45:02 2016 +0100
+++ b/Core/Images/PngReader.cpp	Wed Nov 23 11:46:42 2016 +0100
@@ -34,9 +34,12 @@
 #include "PngReader.h"
 
 #include "../OrthancException.h"
-#include "../SystemToolbox.h"
 #include "../Toolbox.h"
 
+#if ORTHANC_SANDBOXED == 0
+#  include "../SystemToolbox.h"
+#endif
+
 #include <png.h>
 #include <string.h>  // For memcpy()