summaryrefslogtreecommitdiff
path: root/src/stem/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/stem/lib')
-rw-r--r--src/stem/lib/bitset.h2
-rw-r--r--src/stem/lib/stdlib.h2
-rw-r--r--src/stem/lib/types.h15
3 files changed, 17 insertions, 2 deletions
diff --git a/src/stem/lib/bitset.h b/src/stem/lib/bitset.h
index e3fe078..fe9e8c2 100644
--- a/src/stem/lib/bitset.h
+++ b/src/stem/lib/bitset.h
@@ -1,7 +1,7 @@
#ifndef DEF_BITSET_H
#define DEF_BITSET_H
-#include "../types.h"
+#include <types.h>
#define INDEX_FROM_BIT(a) (a/(8*4))
#define OFFSET_FROM_BIT(a) (a%(8*4))
diff --git a/src/stem/lib/stdlib.h b/src/stem/lib/stdlib.h
index a6d8f48..704c410 100644
--- a/src/stem/lib/stdlib.h
+++ b/src/stem/lib/stdlib.h
@@ -1,7 +1,7 @@
#ifndef DEF_STDLIB_H
#define DEF_STDLIB_H
-#include "../types.h"
+#include <types.h>
void *memcpy(void *dest, const void *src, int count);
uint8_t *memset(uint8_t *dest, uint8_t val, int count);
diff --git a/src/stem/lib/types.h b/src/stem/lib/types.h
new file mode 100644
index 0000000..b7b19ab
--- /dev/null
+++ b/src/stem/lib/types.h
@@ -0,0 +1,15 @@
+#ifndef DEF_TYPES_H
+#define DEF_TYPES_H
+
+typedef unsigned long long uint64_t;
+typedef unsigned int uint32_t;
+typedef unsigned short uint16_t;
+typedef unsigned char uint8_t;
+typedef long long int64_t;
+typedef int int32_t;
+typedef short int16_t;
+typedef char int8_t;
+
+typedef unsigned int size_t;
+
+#endif