diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-21 19:17:47 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-21 19:18:47 +0200 |
commit | 40473a70cf5ac6743d9e4e70f3229203a278ff9c (patch) | |
tree | 7b468bfd715d5c78ae3e61301d342b3dc15d1d6e /src/macro.h | |
parent | f1c5860be7b89e784fbba1624127a843b62c7b98 (diff) |
sd-daemon: introduce sd_booted() and set ELF visibility to hidden for all symbols
Diffstat (limited to 'src/macro.h')
-rw-r--r-- | src/macro.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macro.h b/src/macro.h index 763a4de27a..d00e70bf6d 100644 --- a/src/macro.h +++ b/src/macro.h @@ -38,6 +38,8 @@ #define _weak_ __attribute__ ((weak)) #define _likely_(x) (__builtin_expect(!!(x),1)) #define _unlikely_(x) (__builtin_expect(!!(x),0)) +#define _public_ __attribute__ ((visibility("default"))) +#define _hidden_ __attribute__ ((visibility("hidden"))) /* Rounds up */ static inline size_t ALIGN(size_t l) { |