Skip to content

Commit 8fd8ba1

Browse files
Update libc/hdr/offsetof_macros.h
Co-authored-by: Michael Jones <[email protected]>
1 parent 80e7dda commit 8fd8ba1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libc/hdr/offsetof_macros.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@
99
#ifndef LLVM_LIBC_HDR_OFFSETOF_MACROS_H
1010
#define LLVM_LIBC_HDR_OFFSETOF_MACROS_H
1111

12+
#ifdef LIBC_FULL_BUILD
13+
14+
#include "include/llvm-libc-macros/offsetof-macros.h"
15+
16+
#else // Overlay mode
17+
1218
#define __need_offsetof
1319
#include <stddef.h>
1420

21+
#endif // LLVM_LIBC_FULL_BUILD
22+
1523
#endif // LLVM_LIBC_HDR_OFFSETOF_MACROS_H

0 commit comments

Comments
 (0)