Mercurial > hg > orthanc
diff Plugins/Include/orthanc/OrthancCPlugin.h @ 3422:8b4169a88039
ORTHANC_PLUGINS_API using visibility
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Jun 2019 14:49:12 +0200 |
parents | 541c787e2230 |
children | 954d15f24366 |
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