summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-11-07 00:24:54 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-11-07 00:24:54 +0100
commitccde19525333c38360684385c09cebd95a7b631f (patch)
tree7646b1d4c7904613bf25f71be218f52d8ea4e48f /include
parent5e0706dfc69b81d7ec33dac7f1aecae51a2edd7a (diff)
mach/message.h: Fix C++98 build
static_assert was introduced in C++11.
Diffstat (limited to 'include')
-rw-r--r--include/mach/message.h2
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.");