summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-19 08:32:57 +0200
committerPaul Buetow <paul@buetow.org>2026-03-19 08:32:57 +0200
commit4e990b9da0568e1d31f39a95a97a5383f4201c7f (patch)
tree3360af15a0b5f0f49f77f4c3659acdf646bb4da6
parent068dbcad4cc25678d3de986d655266da095b0a27 (diff)
fix: guard rbuffer against non-x86_64 builds (task 473)
-rw-r--r--ioriot/src/datas/rbuffer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ioriot/src/datas/rbuffer.h b/ioriot/src/datas/rbuffer.h
index fa634de..7aeeac1 100644
--- a/ioriot/src/datas/rbuffer.h
+++ b/ioriot/src/datas/rbuffer.h
@@ -19,6 +19,10 @@
#include "../defaults.h"
+#if !defined(__x86_64__)
+#error "rbuffer currently relies on x86_64 memory ordering"
+#endif
+
/**
* @brief An atomic ring buffer data type definition
*