Closes [#124631](https://github.com/llvm/llvm-project/issues/124631). ref: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/endian.h.html This patch adds the implementation of `endian.h`, which includes the header itself and three related macros. These macros in the header rely on the compiler preprocessor, similar to how https://github.com/llvm/llvm-project/blob/main/libc/src/__support/endian_internal.h does. Hopefully this will meet the requirements for compiling llvm with llvm-libc.
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
set(TARGET_PUBLIC_HEADERS
|
|
libc.include.assert
|
|
libc.include.complex
|
|
libc.include.ctype
|
|
libc.include.dlfcn
|
|
libc.include.elf
|
|
libc.include.endian
|
|
libc.include.errno
|
|
libc.include.features
|
|
libc.include.fenv
|
|
libc.include.float
|
|
libc.include.inttypes
|
|
libc.include.limits
|
|
libc.include.link
|
|
libc.include.malloc
|
|
libc.include.math
|
|
libc.include.poll
|
|
libc.include.pthread
|
|
libc.include.search
|
|
libc.include.signal
|
|
libc.include.stdbit
|
|
libc.include.stdckdint
|
|
libc.include.stdint
|
|
libc.include.stdio
|
|
libc.include.stdlib
|
|
libc.include.string
|
|
libc.include.strings
|
|
libc.include.sys_mman
|
|
libc.include.sys_socket
|
|
libc.include.sys_syscall
|
|
libc.include.sys_time
|
|
libc.include.sys_wait
|
|
libc.include.threads
|
|
libc.include.time
|
|
libc.include.uchar
|
|
libc.include.unistd
|
|
libc.include.wchar
|
|
|
|
libc.include.sys_ioctl
|
|
# Disabled due to epoll_wait syscalls not being available on this platform.
|
|
# libc.include.sys_epoll
|
|
)
|