Mercurial > hg > orthanc
diff OrthancFramework/Sources/HttpServer/HttpToolbox.h @ 4327:9684a690ca63
fix link errors on wasm unit tests
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 24 Nov 2020 20:53:21 +0100 |
parents | 83c5bd439fcc |
children | 9dc0e42f868b |
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpToolbox.h Tue Nov 24 19:43:10 2020 +0100 +++ b/OrthancFramework/Sources/HttpServer/HttpToolbox.h Tue Nov 24 20:53:21 2020 +0100 @@ -22,10 +22,6 @@ #pragma once -#if !defined(ORTHANC_SANDBOXED) -# error Macro ORTHANC_SANDBOXED must be defined -#endif - #include "../OrthancFramework.h" #include "IHttpHandler.h" @@ -55,7 +51,6 @@ static void CompileGetArguments(IHttpHandler::Arguments& compiled, const IHttpHandler::GetArguments& source); -#if ORTHANC_SANDBOXED != 1 static bool SimpleGet(std::string& result, IHttpHandler& handler, RequestOrigin origin, @@ -68,7 +63,7 @@ const std::string& uri, const void* bodyData, size_t bodySize, - const IHttpHandler::Arguments& httpHeaders); + const IHttpHandler::Arguments& httpHeaders); static bool SimplePut(std::string& result, IHttpHandler& handler, @@ -82,6 +77,5 @@ RequestOrigin origin, const std::string& uri, const IHttpHandler::Arguments& httpHeaders); -#endif }; }