// SPDX-License-Identifier: GPL-3.0-or-later #ifndef VCC_COMPAT_STDINT_H #define VCC_COMPAT_STDINT_H #include // coco.h uses the same guard and types for its exact-width declarations. #ifndef _CMOC_STDINT_ #define _CMOC_STDINT_ typedef signed char int8_t; typedef unsigned char uint8_t; typedef signed int int16_t; typedef unsigned int uint16_t; typedef signed long int32_t; typedef unsigned long uint32_t; #endif typedef signed int intptr_t; typedef unsigned int uintptr_t; typedef signed long intmax_t; typedef unsigned long uintmax_t; #define INT8_MIN SCHAR_MIN #define INT8_MAX SCHAR_MAX #define UINT8_MAX UCHAR_MAX #define INT16_MIN INT_MIN #define INT16_MAX INT_MAX #define UINT16_MAX UINT_MAX #define INT32_MIN LONG_MIN #define INT32_MAX LONG_MAX #define UINT32_MAX ULONG_MAX #define INTPTR_MIN INT_MIN #define INTPTR_MAX INT_MAX #define UINTPTR_MAX UINT_MAX #define INTMAX_MIN LONG_MIN #define INTMAX_MAX LONG_MAX #define UINTMAX_MAX ULONG_MAX #ifndef SIZE_MAX #define SIZE_MAX 0xFFFFu #endif #endif