CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
stdalign.h
1#pragma once
2// SPDX-License-Identifier: MIT
3// Copyright CHERIoT Contributors
4
5/**
6 * This header is part of C11 (and supported for compatibility in older
7 * versions) but is gone in C23 because the C keywords matching their C++
8 * equivalents were added.
9 */
10#ifdef __STDC_VERSION__
11# if __STDC_VERSION__ < 202311L
12
13/**
14 * C++-compatible spelling for `_Alignas`.
15 */
16# define alignas(__x) _Alignas(__x)
17
18/**
19 * C++-compatible spelling for `_Alignof`.
20 */
21# define alignof(__x) _Alignof(__x)
22
23# define __alignas_is_defined 1
24# define __alignof_is_defined 1
25
26# endif
27#endif