summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-06-08 10:23:58 -0300
committerEuAndreh <eu@euandre.org>2024-06-08 10:23:58 -0300
commit56d62364184f2ce12e3f81c3831af3881feeda96 (patch)
tree9a3eb7a80fafc4968d535f0022293fcdf56edfaa
parentsrc/set.c: v0 for set_add() (diff)
downloadpindaiba-56d62364184f2ce12e3f81c3831af3881feeda96.tar.gz
pindaiba-56d62364184f2ce12e3f81c3831af3881feeda96.tar.xz
src/int.h: Add minimized stdint.h types
-rw-r--r--Makefile2
-rw-r--r--src/int.h8
2 files changed, 9 insertions, 1 deletions
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;