summaryrefslogtreecommitdiff
path: root/fw/include/bits/alltypes.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-03-23 19:04:11 +0100
committerjaseg <git@jaseg.de>2021-03-23 19:04:11 +0100
commit32da9c4e8cb2b5252c13b363db7c28675cf60bb5 (patch)
tree24f736687777a0a0aff704ede81ea2d88ba9806d /fw/include/bits/alltypes.h
parent88379634a8b07015698811b01f91ae331e1ea57b (diff)
downloadsecure-hid-32da9c4e8cb2b5252c13b363db7c28675cf60bb5.tar.gz
secure-hid-32da9c4e8cb2b5252c13b363db7c28675cf60bb5.tar.bz2
secure-hid-32da9c4e8cb2b5252c13b363db7c28675cf60bb5.zip
Fix up firmware and demos
Diffstat (limited to 'fw/include/bits/alltypes.h')
-rw-r--r--fw/include/bits/alltypes.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/fw/include/bits/alltypes.h b/fw/include/bits/alltypes.h
new file mode 100644
index 0000000..581ca85
--- /dev/null
+++ b/fw/include/bits/alltypes.h
@@ -0,0 +1,23 @@
+
+/* shim file for musl */
+
+#ifndef __MUSL_SHIM_BITS_ALLTYPES_H__
+#define __MUSL_SHIM_BITS_ALLTYPES_H__
+
+#define _REDIR_TIME64 1
+#define _Addr int
+#define _Int64 long long
+#define _Reg int
+
+#define __BYTE_ORDER 1234
+
+#define __LONG_MAX 0x7fffffffL
+
+#ifndef __cplusplus
+typedef unsigned wchar_t;
+#endif
+
+typedef float float_t;
+typedef double double_t;
+
+#endif /* __MUSL_SHIM_BITS_ALLTYPES_H__ */