From 3cf522dd3f578d04f8cba94e711611bcea29855a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sat, 22 Jan 2022 14:34:38 +0200
Subject: [PATCH 1/1] Fixed build issue on Haiku OS
Use the _Static_assert
C11 keyword directly.
IssueID #441
src/prefs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/prefs.c b/src/prefs.c
index 6164ca25..13a1dab7 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -25,8 +25,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#include <the_Foundation/fileinfo.h>
#include <assert.h>
-static_assert(offsetof(iPrefs, plainTextWrap) == offsetof(iPrefs, bools[plainTextWrap_PrefsBool]),
"memory layout mismatch (needs struct packing?)");
+_Static_assert(offsetof(iPrefs, plainTextWrap) == offsetof(iPrefs, bools[plainTextWrap_PrefsBool]),
"memory layout mismatch (needs struct packing?)");
void init_Prefs(iPrefs *d) {
iForIndices(i, d->strings) {
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).