libsysprof-capture: Replace G_GNUC_INTERNAL with SYSPROF_INTERNAL

It does the same thing for modern compilers.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-07-01 16:41:52 +01:00
parent 41ec04ea99
commit c9f54fcc68
3 changed files with 22 additions and 17 deletions

View File

@ -66,3 +66,9 @@
#define SYSPROF_BEGIN_DECLS
#define SYSPROF_END_DECLS
#endif
#if defined (__GNUC__)
#define SYSPROF_INTERNAL __attribute__((visibility("hidden")))
#else
#define SYSPROF_INTERNAL
#endif