diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/internal.h b/include/internal.h index 747f095..035440b 100644 --- a/include/internal.h +++ b/include/internal.h | |||
@@ -23,6 +23,8 @@ int __launch_rt_task(rt_fn_t rt_prog, void *rt_arg, | |||
23 | #define likely(x) __builtin_expect((x), 1) | 23 | #define likely(x) __builtin_expect((x), 1) |
24 | #define unlikely(x) __builtin_expect((x), 0) | 24 | #define unlikely(x) __builtin_expect((x), 0) |
25 | 25 | ||
26 | #define offsetof(s, x) __builtin_offsetof(s, x) | ||
27 | |||
26 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) | 28 | #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) |
27 | #define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition)) | 29 | #define BUILD_BUG_ON(condition) ((void)BUILD_BUG_ON_ZERO(condition)) |
28 | 30 | ||