mirror of https://github.com/wolfSSL/wolfssl.git
wolfssl/wolfcrypt/types.h: refactor assert.h gate as WOLFSSL_HAVE_ASSERT_H && !WOLFSSL_NO_ASSERT_H.
wolfssl/wolfcrypt/settings.h: #ifdef WOLFSSL_LINUXKM, #undef WOLFSSL_HAVE_ASSERT_H and #define WOLFSSL_NO_ASSERT_H.pull/8563/head
parent
87c0ac90b8
commit
b9111aae99
|
@ -3611,6 +3611,8 @@ extern void uITRON4_free(void *p) ;
|
|||
#undef HAVE_ATEXIT
|
||||
#undef WOLFSSL_HAVE_MIN
|
||||
#undef WOLFSSL_HAVE_MAX
|
||||
#undef WOLFSSL_HAVE_ASSERT_H
|
||||
#define WOLFSSL_NO_ASSERT_H
|
||||
#define SIZEOF_LONG 8
|
||||
#define SIZEOF_LONG_LONG 8
|
||||
#define CHAR_BIT 8
|
||||
|
|
|
@ -1808,9 +1808,7 @@ typedef struct w64wrapper {
|
|||
#define wc_static_assert(expr) struct wc_static_assert_dummy_struct
|
||||
#define wc_static_assert2(expr, msg) wc_static_assert(expr)
|
||||
#elif !defined(wc_static_assert)
|
||||
#if defined(WOLFSSL_HAVE_ASSERT_H) || \
|
||||
(defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)) || \
|
||||
(defined(__cplusplus) && (__cplusplus >= 201103L))
|
||||
#if defined(WOLFSSL_HAVE_ASSERT_H) && !defined(WOLFSSL_NO_ASSERT_H)
|
||||
#include <assert.h>
|
||||
#endif
|
||||
#if (defined(__cplusplus) && (__cplusplus >= 201703L)) || \
|
||||
|
|
Loading…
Reference in New Issue