1 /* 2 * Copyright (c) 2019 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #ifndef ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_STDINT_H_ 8 #define ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_STDINT_H_ 9 10 /* Work around -ffreestanding absence of defines required to support 11 * PRI.64 macros in <inttypes.h> by including the newlib header that 12 * provides the flag macros. 13 */ 14 15 #include <newlib.h> 16 17 #ifdef __NEWLIB__ 18 /* Has this header. Older versions do it in <stdint.h>. */ 19 #include <sys/_stdint.h> 20 #endif /* __NEWLIB__ */ 21 22 /* This should work on GCC and clang. 23 * 24 * If we need to support a toolchain without #include_next the CMake 25 * infrastructure should be used to identify it and provide an 26 * alternative solution. 27 */ 28 #include_next <stdint.h> 29 30 #endif /* ZEPHYR_LIB_LIBC_NEWLIB_INCLUDE_STDINT_H_ */ 31