Mercurial > hg > orthanc-webviewer
comparison Plugin/Plugin.cpp @ 228:0f9d183f685d
fix compilation with Holy Build Box (for LSB)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 13 Mar 2020 14:03:23 +0100 |
parents | e4def26f0fd3 |
children | cce89307af28 |
comparison
equal
deleted
inserted
replaced
227:e4def26f0fd3 | 228:0f9d183f685d |
---|---|
34 #include <boost/lexical_cast.hpp> | 34 #include <boost/lexical_cast.hpp> |
35 #include <EmbeddedResources.h> | 35 #include <EmbeddedResources.h> |
36 #include <boost/filesystem.hpp> | 36 #include <boost/filesystem.hpp> |
37 | 37 |
38 | 38 |
39 /** | |
40 * We force the redefinition of the "ORTHANC_PLUGINS_API" macro, that | |
41 * was left empty with gcc until Orthanc SDK 1.5.7 (no "default" | |
42 * visibility). This causes the version script, if run from "Holy | |
43 * Build Box", to make private the 4 global functions of the plugin. | |
44 **/ | |
45 | |
46 #undef ORTHANC_PLUGINS_API | |
47 | |
48 #ifdef WIN32 | |
49 # define ORTHANC_PLUGINS_API __declspec(dllexport) | |
50 #elif __GNUC__ >= 4 | |
51 # define ORTHANC_PLUGINS_API __attribute__ ((visibility ("default"))) | |
52 #else | |
53 # define ORTHANC_PLUGINS_API | |
54 #endif | |
55 | |
56 | |
57 | |
39 static OrthancPluginContext* context_ = NULL; | 58 static OrthancPluginContext* context_ = NULL; |
40 static bool restrictTransferSyntaxes_ = false; | 59 static bool restrictTransferSyntaxes_ = false; |
41 static std::set<std::string> enabledTransferSyntaxes_; | 60 static std::set<std::string> enabledTransferSyntaxes_; |
42 | 61 |
43 | 62 |