Skip to content

Commit 8036b54

Browse files
committed
[C] Add _Static_assert definition when compiling with MSVC.
1 parent 774c62c commit 8036b54

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

aeron-client/src/main/c/protocol/aeron_udp_protocol.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
#include "util/aeron_bitutil.h"
2020
#include "aeron_udp_protocol.h"
2121

22+
#ifdef _MSC_VER
23+
#define _Static_assert static_assert
24+
#endif
25+
2226
_Static_assert(
2327
sizeof(aeron_data_header_as_longs_t) == sizeof(aeron_data_header_t),
2428
"sizeof(aeron_data_header_as_longs_t) must match sizeof(aeron_data_header_t)");

0 commit comments

Comments
 (0)