diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-22 14:34:38 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2022-01-22 14:34:38 +0200 |
commit | 3cf522dd3f578d04f8cba94e711611bcea29855a (patch) | |
tree | bf9bbc6a80828d3b32d81d8c987fed36a14dcaca /src/prefs.c | |
parent | b5f644888f572c1443559494214ec4eea825fefc (diff) |
Fixed build issue on Haiku OS
Use the `_Static_assert` C11 keyword directly.
IssueID #441
Diffstat (limited to 'src/prefs.c')
-rw-r--r-- | src/prefs.c | 4 |
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 | ||
28 | static_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 | ||
31 | void init_Prefs(iPrefs *d) { | 31 | void init_Prefs(iPrefs *d) { |
32 | iForIndices(i, d->strings) { | 32 | iForIndices(i, d->strings) { |