From b3e2708fff498204d4efa4cab96f858f38eef51d Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 28 Jan 2026 08:44:13 -0500 Subject: [PATCH] Use align keywords instead of the header OpenBSD is advertising to the preprocessor that it supports C11 but does not include the stdalign.h header. We do not actually need the header, since we can just use the keywords. --- include/prism/defines.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/prism/defines.h b/include/prism/defines.h index c41e6031a3..f6bd1dbe40 100644 --- a/include/prism/defines.h +++ b/include/prism/defines.h @@ -263,13 +263,11 @@ * specify alignment in a compiler-agnostic way. */ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L /* C11 or later */ - #include - /** Specify alignment for a type or variable. */ - #define PRISM_ALIGNAS(size) alignas(size) + #define PRISM_ALIGNAS _Alignas /** Get the alignment requirement of a type. */ - #define PRISM_ALIGNOF(type) alignof(type) + #define PRISM_ALIGNOF _Alignof #elif defined(__GNUC__) || defined(__clang__) /** Specify alignment for a type or variable. */ #define PRISM_ALIGNAS(size) __attribute__((aligned(size)))