# HG changeset patch # User Sebastien Jodogne # Date 1545409512 -3600 # Node ID caa03eaeb097a90507758e6c8f608a75136f7385 # Parent 6faf575ba9cc709cf61ab5f00439eda0171633af fix to use from orthanc-databases diff -r 6faf575ba9cc -r caa03eaeb097 OrthancServer/Search/DicomTagConstraint.cpp --- 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 @@ -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()) {