ObjFW  Check-in [c2a2107f79]

Overview
Comment:macros.h: Add OF_ALIGNAS
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c2a2107f7917018c799a00b2b4e503f07f6beb3de9d2f3a9aeb8981db23fb41e
User & Date: js on 2017-05-29 21:55:22
Other Links: manifest | tags
Context
2017-05-30
22:01
MorphOS: Name variable handle instead of fd check-in: c5c3df3abe user: js tags: trunk
2017-05-29
21:55
macros.h: Add OF_ALIGNAS check-in: c2a2107f79 user: js tags: trunk
2017-05-28
23:38
platform.h: Add OF_ANDROID and OF_DJGPP check-in: 476483dd19 user: js tags: trunk
Changes

Modified src/macros.h from [92a3d178cb] to [1a378051a0].

81
82
83
84
85
86
87






88
89
90
91
92
93
94
#endif

#ifdef OF_BIG_ENDIAN
# define OF_BYTE_ORDER_NATIVE OF_BYTE_ORDER_BIG_ENDIAN
#else
# define OF_BYTE_ORDER_NATIVE OF_BYTE_ORDER_LITTLE_ENDIAN
#endif







#if __STDC_VERSION__ >= 201112L && defined(OF_HAVE_MAX_ALIGN_T)
# define OF_BIGGEST_ALIGNMENT _Alignof(max_align_t)
#else
# ifdef __BIGGEST_ALIGNMENT__
#  define OF_BIGGEST_ALIGNMENT __BIGGEST_ALIGNMENT__
# else







>
>
>
>
>
>







81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#endif

#ifdef OF_BIG_ENDIAN
# define OF_BYTE_ORDER_NATIVE OF_BYTE_ORDER_BIG_ENDIAN
#else
# define OF_BYTE_ORDER_NATIVE OF_BYTE_ORDER_LITTLE_ENDIAN
#endif

#if __STDC_VERSION__ >= 201112L
# define OF_ALIGNAS(type) _Alignas(type)
#else
# define OF_ALIGNAS(type) __attribute__((__aligned__(sizeof(type))))
#endif

#if __STDC_VERSION__ >= 201112L && defined(OF_HAVE_MAX_ALIGN_T)
# define OF_BIGGEST_ALIGNMENT _Alignof(max_align_t)
#else
# ifdef __BIGGEST_ALIGNMENT__
#  define OF_BIGGEST_ALIGNMENT __BIGGEST_ALIGNMENT__
# else