libseat: Use symbol file instead of -fvisibility

This commit is contained in:
Kenny Levinsen 2020-08-03 00:54:43 +02:00
parent b2cbe576d1
commit 3e301b8e70
4 changed files with 19 additions and 12 deletions

View file

@ -3,10 +3,8 @@
#ifdef __GNUC__
#define ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
#define LIBSEAT_EXPORT __attribute__((visibility("default")))
#else
#define ATTRIB_PRINTF(start, end)
#define LIBSEAT_EXPORT
#endif
#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1)