X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmacro.h;h=acfc277517296cb2da8b1625ec223f9e0fc286cd;hp=7bd57b3a8e1bad41d37c35a55a46f59e94117859;hb=7f97f0fee46ae167c27c5be21ee0caddacbc6bf9;hpb=c6c18be35bb1d300d0b62a568783cc1c477f7151 diff --git a/src/macro.h b/src/macro.h index 7bd57b3a8..acfc27751 100644 --- a/src/macro.h +++ b/src/macro.h @@ -1,4 +1,4 @@ -/*-*- Mode: C; c-basic-offset: 8 -*-*/ +/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/ #ifndef foomacrohfoo #define foomacrohfoo @@ -40,6 +40,7 @@ #define _unlikely_(x) (__builtin_expect(!!(x),0)) #define _public_ __attribute__ ((visibility("default"))) #define _hidden_ __attribute__ ((visibility("hidden"))) +#define _weakref_(x) __attribute__((weakref(#x))) /* Rounds up */ static inline size_t ALIGN(size_t l) {