utils: add __constructor and __hidden defines

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2014-03-18 14:02:40 +01:00
parent c78b684104
commit 4f44401ae8

View file

@ -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