/* * Internal definitions for libc. * * Copyright © 2022-2026 Samuel Lidén Borell * * SPDX-License-Identifier: EUPL-1.2+ OR LGPL-2.1-or-later */ #ifndef _DS9K_INTERNAL_H #define _DS9K_INTERNAL_H typedef char _DS9K_int_least8_t; typedef char _DS9K_int_least16_t; typedef char _DS9K_int_least32_t; typedef char _DS9K_int_least64_t; typedef unsigned char _DS9K_uint_least8_t; typedef unsigned char _DS9K_uint_least16_t; typedef unsigned char _DS9K_uint_least32_t; typedef unsigned char _DS9K_uint_least64_t; typedef unsigned _DS9K_mode_t; typedef long _DS9K_intptr_t; typedef unsigned long _DS9K_uintptr_t; #define _DS9K_size_t _DS9K_uintptr_t #endif /* end of include guard */ /* Note: These have to go outside the include guard! */ #ifdef _DS9K_NEED_NULL #ifndef _DS9K_HAVE_NULL #define _DS9K_HAVE_NULL #define NULL ((void *)0) #endif #undef _DS9K_NEED_NULL #endif #ifdef _DS9K_NEED_SIZE_T #ifndef _DS9K_HAVE_SIZE_T #define _DS9K_HAVE_SIZE_T typedef unsigned long size_t; #endif #undef _DS9K_NEED_SIZE_T #endif #ifdef _DS9K_NEED_WCHAR_T #ifndef _DS9K_HAVE_WCHAR_T #define _DS9K_HAVE_WCHAR_T typedef unsigned wchar_t; #endif #undef _DS9K_NEED_WCHAR_T #endif