Mercurial > hg > orthanc-stone
comparison Framework/StoneInitialization.cpp @ 797:20262f5e5e88
Added missing HttpClient::GlobalInitialize in StoneInitialize
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 28 May 2019 11:37:50 +0200 |
parents | b8b2bb75fde1 |
children | 61ba4b504e9a |
comparison
equal
deleted
inserted
replaced
789:c83a45f864b2 | 797:20262f5e5e88 |
---|---|
29 | 29 |
30 #if ORTHANC_ENABLE_SDL == 1 | 30 #if ORTHANC_ENABLE_SDL == 1 |
31 # include "../Applications/Sdl/SdlWindow.h" | 31 # include "../Applications/Sdl/SdlWindow.h" |
32 #endif | 32 #endif |
33 | 33 |
34 #if ORTHANC_ENABLE_CURL == 1 | |
35 #include <Core/HttpClient.h> | |
36 #endif | |
37 | |
34 namespace OrthancStone | 38 namespace OrthancStone |
35 { | 39 { |
36 #if ORTHANC_ENABLE_LOGGING_PLUGIN == 1 | 40 #if ORTHANC_ENABLE_LOGGING_PLUGIN == 1 |
37 void StoneInitialize(OrthancPluginContext* context) | 41 void StoneInitialize(OrthancPluginContext* context) |
38 #else | 42 #else |
46 #endif | 50 #endif |
47 | 51 |
48 #if ORTHANC_ENABLE_SDL == 1 | 52 #if ORTHANC_ENABLE_SDL == 1 |
49 OrthancStone::SdlWindow::GlobalInitialize(); | 53 OrthancStone::SdlWindow::GlobalInitialize(); |
50 #endif | 54 #endif |
55 | |
56 #if ORTHANC_ENABLE_CURL == 1 | |
57 Orthanc::HttpClient::GlobalInitialize(); | |
58 #endif | |
51 } | 59 } |
52 | 60 |
53 void StoneFinalize() | 61 void StoneFinalize() |
54 { | 62 { |
55 #if ORTHANC_ENABLE_SDL == 1 | 63 #if ORTHANC_ENABLE_SDL == 1 |