tree-wide: replace __alignof__() with alignof()
Addresses https://github.com/systemd/systemd/pull/27254#discussion_r1165267046.
This commit is contained in:
@@ -184,7 +184,7 @@ int flush_accept(int fd);
|
||||
#define CMSG_TYPED_DATA(cmsg, type) \
|
||||
({ \
|
||||
struct cmsghdr *_cmsg = (cmsg); \
|
||||
assert_cc(__alignof__(type) <= __alignof__(struct cmsghdr)); \
|
||||
assert_cc(alignof(type) <= alignof(struct cmsghdr)); \
|
||||
_cmsg ? CAST_ALIGN_PTR(type, CMSG_DATA(_cmsg)) : (type*) NULL; \
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user