diff Core/Images/PngReader.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/PngReader.cpp	Tue Nov 22 15:03:14 2016 +0100
+++ b/Core/Images/PngReader.cpp	Wed Nov 23 11:45:02 2016 +0100
@@ -42,6 +42,7 @@
 
 namespace Orthanc
 {
+#if ORTHANC_SANDBOXED == 0
   namespace 
   {
     struct FileRabi
@@ -66,6 +67,7 @@
       }
     };
   }
+#endif
 
 
   struct PngReader::PngRabi
@@ -207,6 +209,8 @@
     AssignWritable(format, width, height, pitch, &data_[0]);
   }
 
+
+#if ORTHANC_SANDBOXED == 0
   void PngReader::ReadFromFile(const std::string& filename)
   {
     FileRabi f(filename.c_str());
@@ -231,6 +235,7 @@
 
     Read(rabi);
   }
+#endif
 
 
   namespace