Files
mango/include/socks/compiler.h

20 lines
429 B
C
Raw Normal View History

#ifndef SOCKS_COMPILER_H_
#define SOCKS_COMPILER_H_
#define READ_ONCE(p) (*((const volatile typeof(p) *)&(p)))
#define WRITE_ONCE(p, v) *(volatile typeof(p) *)&(p) = (v)
#undef __used
#define __used __attribute__((used))
#undef __packed
2022-12-24 10:28:41 +00:00
#define __packed __attribute__((packed))
#undef __section
#define __section(name) __attribute__((section(name)))
#undef __aligned
2023-02-04 17:46:05 +00:00
#define __aligned(x) __attribute__((aligned(x)))
#endif