Trust that GCC has __attribute__ visibility:

GCC 4.8 (which we support...) does not have __has_attribute. Fixes CentOS7 builds.
This commit is contained in:
Axel Naumann 2021-05-26 11:39:46 +02:00 committed by jenkins
parent 35259e725a
commit c385db1be7

View File

@ -24,7 +24,7 @@
# else
# define CLING_LIB_EXPORT __declspec(dllexport)
# endif
#elif (__has_attribute(visibility))
#elif (__has_attribute(visibility)) || defined(__GNUC__)
# define CLING_LIB_EXPORT __attribute__ ((visibility("default")))
#else
# define CLING_LIB_EXPORT