Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions wolfssl/wolfcrypt/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,14 @@ WOLFSSL_API word32 CheckRunTimeSettings(void);
wc_static_assert2(__builtin_choose_expr( \
WC_IS_CONSTEXPR(expr), expr, 1), msg)
#endif
#elif defined(WOLFSSL_BSDKM)
/* from CTASSERT(9), FreeBSD Kernel Developer's Manual:
* The CTASSERT() macro is deprecated and the C11 standard
* _Static_assert() should be used instead. */
#define wc_static_assert(expr) _Static_assert(expr, #expr)
#ifndef wc_static_assert2
#define wc_static_assert2(expr, msg) _Static_assert(expr, msg)
#endif
#else
#ifdef __COUNTER__
#define wc_static_assert(expr) \
Expand Down
Loading