src/linked_list.c

changeset 1534
38d3f40a50ec
parent 1533
6d65b1e97136
equal deleted inserted replaced
1533:6d65b1e97136 1534:38d3f40a50ec
28 28
29 #include "cx/linked_list.h" 29 #include "cx/linked_list.h"
30 #include "cx/compare.h" 30 #include "cx/compare.h"
31 #include <string.h> 31 #include <string.h>
32 #include <assert.h> 32 #include <assert.h>
33
33 #if __STDC_VERSION__ < 202311L 34 #if __STDC_VERSION__ < 202311L
34 #include <stdalign.h> 35 // we cannot simply include stdalign.h
36 // because Solaris is not entirely C11 complaint
37 #ifndef __alignof_is_defined
38 #define alignof _Alignof
39 #define __alignof_is_defined 1
40 #endif
35 #endif 41 #endif
36 42
37 // LOW LEVEL LINKED LIST FUNCTIONS 43 // LOW LEVEL LINKED LIST FUNCTIONS
38 44
39 #define CX_LL_PTR(cur, off) (*(void**)(((char*)(cur))+(off))) 45 #define CX_LL_PTR(cur, off) (*(void**)(((char*)(cur))+(off)))

mercurial