Mercurial > hg > orthanc
changeset 3422:8b4169a88039
ORTHANC_PLUGINS_API using visibility
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Jun 2019 14:49:12 +0200 |
parents | decbede6e3ad |
children | f5fe6d08f910 |
files | Plugins/Include/orthanc/OrthancCPlugin.h Plugins/Samples/Common/OrthancPluginCppWrapper.cpp |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h Wed Jun 12 18:04:53 2019 +0200 +++ b/Plugins/Include/orthanc/OrthancCPlugin.h Thu Jun 13 14:49:12 2019 +0200 @@ -113,9 +113,11 @@ #include <string.h> #ifdef WIN32 -#define ORTHANC_PLUGINS_API __declspec(dllexport) +# define ORTHANC_PLUGINS_API __declspec(dllexport) +#elif __GNUC__ >= 4 +# define ORTHANC_PLUGINS_API __attribute__ ((visibility ("default"))) #else -#define ORTHANC_PLUGINS_API +# define ORTHANC_PLUGINS_API #endif #define ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER 1
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Wed Jun 12 18:04:53 2019 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Thu Jun 13 14:49:12 2019 +0200 @@ -1298,7 +1298,7 @@ } else { - if (!answer.IsEmpty()) // i.e, on a PUT to metadata/..., orthand returns an empty response + if (!answer.IsEmpty()) // i.e, on a PUT to metadata/..., orthanc returns an empty response { answer.ToJson(result); }