summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-01-15 19:15:14 +0100
committerHarald Welte <laforge@gnumonks.org>2017-01-15 19:18:38 +0100
commit0fa403b51bfab1836113d560d8a5d8ba3c9e4ea6 (patch)
tree8ecf887f86d12bd78fe02e1c66cd5518a3f7b41b /src
parent2d7321bbde4421b31139c687e8c81106bd702f60 (diff)
Add an endian.h file as one step to build against later libosmocore
Diffstat (limited to 'src')
-rw-r--r--src/target/firmware/include/endian.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/target/firmware/include/endian.h b/src/target/firmware/include/endian.h
new file mode 100644
index 00000000..3abcb327
--- /dev/null
+++ b/src/target/firmware/include/endian.h
@@ -0,0 +1,12 @@
+#ifndef __ENDIAN_H
+#define __ENDIAN_H
+
+#include <sys/cdefs.h>
+#include <sys/_types.h>
+#include <machine/_endian.h>
+
+#define __BYTE_ORDER __LITTLE_ENDIaN
+#define _QUAD_HIGHWORD 1
+#define _QUAD_LOWWORD 0
+
+#endif /* __ENDIAN_H__ */