Mercurial > hg > orthanc
changeset 3059:caa03eaeb097 db-changes
fix to use from orthanc-databases
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 21 Dec 2018 17:25:12 +0100 |
parents | 6faf575ba9cc |
children | ce272138f15e |
files | OrthancServer/Search/DicomTagConstraint.cpp |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Search/DicomTagConstraint.cpp Fri Dec 21 17:07:58 2018 +0100 +++ b/OrthancServer/Search/DicomTagConstraint.cpp Fri Dec 21 17:25:12 2018 +0100 @@ -34,9 +34,12 @@ #include "../PrecompiledHeadersServer.h" #include "DicomTagConstraint.h" +#if defined(ORTHANC_ENABLE_LUA) && ORTHANC_ENABLE_LUA != 0 +# include "../ServerToolbox.h" +#endif + #include "../../Core/OrthancException.h" #include "../../Core/Toolbox.h" -#include "../ServerToolbox.h" #include "DatabaseConstraint.h" #include <boost/regex.hpp> @@ -156,8 +159,10 @@ caseSensitive_(constraint.IsCaseSensitive()), mandatory_(constraint.IsMandatory()) { +#if defined(ORTHANC_ENABLE_LUA) && ORTHANC_ENABLE_LUA != 0 assert(constraint.IsIdentifier() == ServerToolbox::IsIdentifier(constraint.GetTag(), constraint.GetLevel())); +#endif if (constraint.IsIdentifier()) {