# HG changeset patch # User Sebastien Jodogne # Date 1354224485 -3600 # Node ID 03aa59ecf6d811a2291db60d28a63002f9c12a16 # Parent 4eb0c7ce86c9784b738a1523c2a06efedaec4eb8 fix for mingw diff -r 4eb0c7ce86c9 -r 03aa59ecf6d8 OrthancServer/OrthancRestApi2.cpp --- a/OrthancServer/OrthancRestApi2.cpp Thu Nov 29 22:22:00 2012 +0100 +++ b/OrthancServer/OrthancRestApi2.cpp Thu Nov 29 22:28:05 2012 +0100 @@ -45,7 +45,8 @@ #define RETRIEVE_CONTEXT(call) \ - ServerContext& context = dynamic_cast(call.GetContext()).GetContext() + OrthancRestApi2& contextApi = dynamic_cast(call.GetContext()); \ + ServerContext& context = contextApi.GetContext() namespace Orthanc