From 123cfc9a818c51d93131f3beda54cdece88debf0 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Tue, 25 Apr 2023 21:49:22 +0200 Subject: [PATCH] Misc updates to stdalign.h to improve resiliency --- stdalign.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stdalign.h b/stdalign.h index d138500..00105a9 100644 --- a/stdalign.h +++ b/stdalign.h @@ -7,14 +7,17 @@ #define __FSTD_HDRS_STDALIGN_H_MACROS 1 #ifndef __cplusplus +# undef alignas # define alignas _Alignas +# undef alignof # define alignof _Alignof +# undef __alignof_is_defined # define __alignof_is_defined 1 +# undef __alignas_is_defined +# define __alignas_is_defined 1 #endif -#define __alignas_is_defined 1 - #endif #endif