2022-12-21 08:29:33 +00:00
|
|
|
#ifndef SOCKS_COMPILER_H_
|
|
|
|
|
#define SOCKS_COMPILER_H_
|
|
|
|
|
|
2023-03-24 14:18:45 +00:00
|
|
|
#define READ_ONCE(t, p) (*((const volatile t *)&(p)))
|
|
|
|
|
#define WRITE_ONCE(t, p, v) *(volatile t *)&(p) = (v)
|
2023-03-19 20:36:13 +00:00
|
|
|
|
2023-02-25 17:57:53 +00:00
|
|
|
#undef __used
|
2022-12-21 08:29:33 +00:00
|
|
|
#define __used __attribute__((used))
|
2023-02-25 17:57:53 +00:00
|
|
|
|
|
|
|
|
#undef __packed
|
2022-12-24 10:28:41 +00:00
|
|
|
#define __packed __attribute__((packed))
|
2023-02-25 17:57:53 +00:00
|
|
|
|
|
|
|
|
#undef __section
|
2022-12-21 08:29:33 +00:00
|
|
|
#define __section(name) __attribute__((section(name)))
|
2023-02-25 17:57:53 +00:00
|
|
|
|
|
|
|
|
#undef __aligned
|
2023-02-04 17:46:05 +00:00
|
|
|
#define __aligned(x) __attribute__((aligned(x)))
|
2022-12-21 08:29:33 +00:00
|
|
|
|
|
|
|
|
#endif
|