include stdalign.h when not using C23 or newer

Sun, 30 Nov 2025 15:45:35 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 30 Nov 2025 15:45:35 +0100
changeset 1533
6d65b1e97136
parent 1532
313fd460d264
child 1534
38d3f40a50ec

include stdalign.h when not using C23 or newer

src/linked_list.c file | annotate | diff | comparison | revisions
--- a/src/linked_list.c	Sun Nov 30 15:41:15 2025 +0100
+++ b/src/linked_list.c	Sun Nov 30 15:45:35 2025 +0100
@@ -30,6 +30,9 @@
 #include "cx/compare.h"
 #include <string.h>
 #include <assert.h>
+#if __STDC_VERSION__ < 202311L
+#include <stdalign.h>
+#endif
 
 // LOW LEVEL LINKED LIST FUNCTIONS
 

mercurial