// Part of JoeyLib, Copyright (c) 2026 Scott Duensing, under the MIT License. // See LICENSE.md for license information. // SPDX-License-Identifier: MIT // // stdint.h for BeOS R5 (make beos): R5 predates C99 and has none. Its // posix/inttypes.h has the exact-width and pointer-width types; this adds // the limits C99's gives with them. make/support/be/gcc2.sh puts // this folder on the include path in its R5 mode only. #ifndef JOEYLIB_R5_STDINT_H #define JOEYLIB_R5_STDINT_H #include #define INT8_MIN (-128) #define INT8_MAX 127 #define UINT8_MAX 255 #define INT16_MIN (-32767 - 1) #define INT16_MAX 32767 #define UINT16_MAX 65535 #define INT32_MIN (-2147483647 - 1) #define INT32_MAX 2147483647 #define UINT32_MAX 4294967295U #define INT64_MIN (-9223372036854775807LL - 1) #define INT64_MAX 9223372036854775807LL #define UINT64_MAX 18446744073709551615ULL #define INTPTR_MIN INT32_MIN #define INTPTR_MAX INT32_MAX #define UINTPTR_MAX UINT32_MAX #define SIZE_MAX UINT32_MAX #endif