gen: use externally_visible too for VV_EXPORTED_SYMBOL when ARM is defined

pull/8332/head
Delyan Angelov 2021-01-25 12:40:28 +02:00
parent 334554ffb9
commit d3d301d8ff
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ typedef int (*qsort_callback_func)(const void*, const void*);
#define __has_attribute(x) 0 // Compatibility with non-clang compilers.
#endif
#if (defined(__GNUC__) && (__GNUC__ >= 4)) || (defined(__clang__) && __has_attribute(visibility))
#ifdef ARM
#define VV_EXPORTED_SYMBOL extern __attribute__((externally_visible,visibility("default")))
#else
#define VV_EXPORTED_SYMBOL extern __attribute__((visibility("default")))
#endif
#define VV_LOCAL_SYMBOL __attribute__ ((visibility ("hidden")))
#else
#define VV_EXPORTED_SYMBOL extern