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]),

+_Static_assert(offsetof(iPrefs, plainTextWrap) == offsetof(iPrefs, bools[plainTextWrap_PrefsBool]),

void init_Prefs(iPrefs *d) {

 iForIndices(i, d->strings) {

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.8/patch/3cf522dd3f578d04f8cba94e711611bcea29855a.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
56.298933 milliseconds
Gemini-to-HTML Time
0.875045 milliseconds

This content has been proxied by September (ba2dc).