summaryrefslogtreecommitdiff
path: root/src/macro.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-21 19:17:47 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-21 19:18:47 +0200
commit40473a70cf5ac6743d9e4e70f3229203a278ff9c (patch)
tree7b468bfd715d5c78ae3e61301d342b3dc15d1d6e /src/macro.h
parentf1c5860be7b89e784fbba1624127a843b62c7b98 (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.h2
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) {