diff --git a/girara/macros.h b/girara/macros.h index 8ceedd3d1953c24913f45c4ef333c5a3b4714c18..681d119a55a9e1d46adecb740992cb9cf6f3b4e1 100644 --- a/girara/macros.h +++ b/girara/macros.h @@ -36,6 +36,14 @@ # endif #endif +#ifndef GIRARA_VISIBLE +# if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__) +# define GIRARA_VISIBLE __attribute__((visibility("default"))) +# else +# define GIRARA_VISIBLE +# endif +#endif + #ifndef GIRARA_DEPRECATED # if defined(__GNUC__) # define GIRARA_DEPRECATED(x) x __attribute__((deprecated))