diff options
-rw-r--r-- | include/mach/message.h | 2 |
1 files changed, 2 insertions, 0 deletions
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."); |