We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db72066 + b3e2708 commit 9e11736Copy full SHA for 9e11736
1 file changed
include/prism/defines.h
@@ -263,13 +263,11 @@
263
* specify alignment in a compiler-agnostic way.
264
*/
265
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L /* C11 or later */
266
- #include <stdalign.h>
267
-
268
/** Specify alignment for a type or variable. */
269
- #define PRISM_ALIGNAS(size) alignas(size)
+ #define PRISM_ALIGNAS _Alignas
270
271
/** Get the alignment requirement of a type. */
272
- #define PRISM_ALIGNOF(type) alignof(type)
+ #define PRISM_ALIGNOF _Alignof
273
#elif defined(__GNUC__) || defined(__clang__)
274
275
#define PRISM_ALIGNAS(size) __attribute__((aligned(size)))
0 commit comments