summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2022-01-22 14:34:38 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2022-01-22 14:34:38 +0200
commit3cf522dd3f578d04f8cba94e711611bcea29855a (patch)
treebf9bbc6a80828d3b32d81d8c987fed36a14dcaca
parentb5f644888f572c1443559494214ec4eea825fefc (diff)
Fixed build issue on Haiku OS
Use the `_Static_assert` C11 keyword directly. IssueID #441
-rw-r--r--src/prefs.c4
1 files 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. */
25#include <the_Foundation/fileinfo.h> 25#include <the_Foundation/fileinfo.h>
26#include <assert.h> 26#include <assert.h>
27 27
28static_assert(offsetof(iPrefs, plainTextWrap) == offsetof(iPrefs, bools[plainTextWrap_PrefsBool]), 28_Static_assert(offsetof(iPrefs, plainTextWrap) == offsetof(iPrefs, bools[plainTextWrap_PrefsBool]),
29 "memory layout mismatch (needs struct packing?)"); 29 "memory layout mismatch (needs struct packing?)");
30 30
31void init_Prefs(iPrefs *d) { 31void init_Prefs(iPrefs *d) {
32 iForIndices(i, d->strings) { 32 iForIndices(i, d->strings) {