utils: add __constructor and __hidden defines
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
c78b684104
commit
4f44401ae8
1 changed files with 8 additions and 0 deletions
8
utils.h
8
utils.h
|
@ -155,6 +155,14 @@ static inline uint16_t __u_bswap16(uint16_t val)
|
||||||
#define __packed __attribute__((packed))
|
#define __packed __attribute__((packed))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __constructor
|
||||||
|
#define __constructor __attribute__((constructor))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __hidden
|
||||||
|
#define __hidden __attribute__((visibility("hidden")))
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef BITS_PER_LONG
|
#ifndef BITS_PER_LONG
|
||||||
#define BITS_PER_LONG (8 * sizeof(unsigned long))
|
#define BITS_PER_LONG (8 * sizeof(unsigned long))
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue