Mercurial > hg > orthanc
diff Core/FileStorage/FilesystemStorage.h @ 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/FileStorage/FilesystemStorage.h Wed Sep 20 16:28:27 2017 +0200 +++ b/Core/FileStorage/FilesystemStorage.h Wed Sep 20 17:02:27 2017 +0200 @@ -33,6 +33,14 @@ #pragma once +#if !defined(ORTHANC_SANDBOXED) +# error The macro ORTHANC_SANDBOXED must be defined +#endif + +#if ORTHANC_SANDBOXED == 1 +# error The class FilesystemStorage cannot be used in sandboxed environments +#endif + #include "IStorageArea.h" #include <stdint.h>