From 65f7f06d010e705d70f47db48b371f81d09914ea Mon Sep 17 00:00:00 2001 From: A404M Date: Tue, 8 Apr 2025 07:36:47 +0330 Subject: add support for tcc --- src/utils/type.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/utils/type.h') diff --git a/src/utils/type.h b/src/utils/type.h index aad46df..771837e 100644 --- a/src/utils/type.h +++ b/src/utils/type.h @@ -2,6 +2,8 @@ #include +// #define FLOAT_16_SUPPORT + typedef int8_t i8; typedef int16_t i16; typedef int32_t i32; @@ -12,9 +14,19 @@ typedef uint16_t u16; typedef uint32_t u32; typedef uint64_t u64; +#ifdef FLOAT_16_SUPPORT typedef _Float16 f16; +#endif typedef float f32; typedef double f64; typedef long double f128; +#ifndef __cplusplus +#if (__STDC_VERSION__ < 202000L) +typedef u8 bool; +#define false (bool)0 +#define true (bool)1 +#endif +#endif + void checkTypes(); -- cgit v1.2.3