fix linux-specific compilation errors

This commit is contained in:
2024-10-27 15:36:14 +00:00
parent e77c3908eb
commit a86291ca75
5 changed files with 15 additions and 11 deletions

View File

@@ -1,6 +1,10 @@
#ifndef BLUELIB_MISB_H_
#define BLUELIB_MISB_H_
#ifndef _Nonnull
#define _Nonnull
#endif
#define b_unbox(type, box, member) \
((type *_Nonnull)((box) ? (uintptr_t)(box) - (offsetof(type, member)) : 0))