# HG changeset patch # User Sebastien Jodogne # Date 1560430152 -7200 # Node ID 8b4169a8803982887f7812cbd0da139716983407 # Parent decbede6e3ade92c4b8ed7f17714f4f15fb59d9c ORTHANC_PLUGINS_API using visibility diff -r decbede6e3ad -r 8b4169a88039 Plugins/Include/orthanc/OrthancCPlugin.h --- 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 #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 diff -r decbede6e3ad -r 8b4169a88039 Plugins/Samples/Common/OrthancPluginCppWrapper.cpp --- 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); }