[riot-notifications] [RIOT-OS/RIOT] pkg/libb2: fix build on esp8266 (#12135)

benpicco notifications at github.com
Mon Sep 2 11:52:39 CEST 2019


benpicco commented on this pull request.



> +
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Add no suffix to the functions */
+#define SUFFIX
+
+/* Test for a little-endian machine */
+#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+#define NATIVE_LITTLE_ENDIAN
+#endif
+
+/* CPUs that don't support unaligned access, taken from GStreamer */
+#if defined(__alpha__) || defined(__arc__) || defined(__arm__) || defined(__aarch64__) || defined(__bfin) || defined(__hppa__) || defined(__nios2__) || defined(__MICROBLAZE__) || defined(__mips__) || defined(__or1k__) || defined(__sh__) || defined(__SH4__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_ARM64) || defined(_M_IA64) || defined(__xtensa__) || defined(__e2k__) || defined(__riscv)
+#define HAVE_ALIGNED_ACCESS_REQUIRED

Oh you are right. The list looked complrehensive enough to cover all possible future ports ;) But it is indeed unlikely that Linux/GStreamer would ever run on MSP430 or Atmega but I see they would also not support unaligned memory access. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12135#discussion_r319887585
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190902/cdf5ee24/attachment-0001.htm>


More information about the notifications mailing list