From ccde19525333c38360684385c09cebd95a7b631f Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 7 Nov 2023 00:24:54 +0100 Subject: mach/message.h: Fix C++98 build static_assert was introduced in C++11. --- include/mach/message.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/mach/message.h b/include/mach/message.h index 816d257a..17d3592f 100644 --- a/include/mach/message.h +++ b/include/mach/message.h @@ -282,8 +282,10 @@ typedef struct { #ifdef __x86_64__ #ifdef __cplusplus +#if __cplusplus >= 201103L static_assert (sizeof (mach_msg_type_t) == sizeof (mach_msg_type_long_t), "mach_msg_type_t and mach_msg_type_long_t need to have the same size."); +#endif #else _Static_assert (sizeof (mach_msg_type_t) == sizeof (mach_msg_type_long_t), "mach_msg_type_t and mach_msg_type_long_t need to have the same size."); -- cgit v1.2.3