Mercurial > hg > orthanc
diff Core/FileStorage/StorageAccessor.h @ 2407:5edec967055e
fix sandboxed builds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 20 Sep 2017 17:02:27 +0200 |
parents | 75c779ca948c |
children | 878b59270859 |
line wrap: on
line diff
--- a/Core/FileStorage/StorageAccessor.h Wed Sep 20 16:28:27 2017 +0200 +++ b/Core/FileStorage/StorageAccessor.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 StorageAccessor cannot be used in sandboxed environments +#endif + #if !defined(ORTHANC_ENABLE_CIVETWEB) # error Macro ORTHANC_ENABLE_CIVETWEB must be defined to use this file #endif