Fix definition of TL_API under GCC

Gbp-Pq: Name 0001-Fix-definition-of-TL_API-under-GCC.patch
This commit is contained in:
Sebastian Ramacher 2019-10-15 20:13:06 +02:00 committed by openKylinBot
parent 4288c4ac4d
commit b62f176896
1 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@ extern "C" {
# endif
# endif
#else
# ifdef GNUC
# if GNUC >= 4
# define TL_API attribute ((visibility("default")))
# ifdef __GNUC__
# if __GNUC__ >= 4
# define TL_API __attribute__ ((visibility("default")))
# else
# define TL_API
# endif