From 56d62364184f2ce12e3f81c3831af3881feeda96 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sat, 8 Jun 2024 10:23:58 -0300 Subject: src/int.h: Add minimized stdint.h types --- Makefile | 2 +- src/int.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/int.h diff --git a/Makefile b/Makefile index a98c9be..3132486 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ include deps.mk catalogs.cat = $(catalogs.msg:.msg=.cat) -sources.h = $(sources.c:.c=.h) +sources.h = $(sources.c:.c=.h) src/int.h sources.o = $(sources.c:.c=.o) tests.o = $(tests.c:.c=.o) tests.a = $(tests.c:.c=.a) diff --git a/src/int.h b/src/int.h new file mode 100644 index 0000000..87e6bd4 --- /dev/null +++ b/src/int.h @@ -0,0 +1,8 @@ +typedef signed char i8; +typedef unsigned char u8; +typedef signed short i16; +typedef unsigned short u16; +typedef signed long i32; +typedef unsigned long u32; +typedef signed long long i64; +typedef unsigned long long u64; -- cgit v1.2.3