xref: /freebsd/sys/sys/_offsetof.h (revision 0076f6d1ad05e80d372bef1caf15615cd639fb5c)
1 /*
2  * Copyright (c) 2026 Capabilities Limited
3  *
4  * SPDX-License-Identifier: BSD-2-Clause
5  *
6  * This software was developed by SRI International, the University of
7  * Cambridge Computer Laboratory (Department of Computer Science and
8  * Technology), and Capabilities Limited under Defense Advanced Research
9  * Projects Agency / Air Force Research Laboratory (DARPA/AFRL) Contract
10  * No. FA8750-24-C-B047 ("DEC").
11  */
12 #ifndef _SYS__OFFSETOF_H_
13 #define	_SYS__OFFSETOF_H_
14 
15 #ifndef offsetof
16 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)
17 #endif
18 
19 #endif /* _SYS__OFFSETOF_H_ */
20