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:
parent
35259e725a
commit
c385db1be7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user