Skip to content

Commit

Permalink
wolfssl/wolfcrypt/types.h: in static_assert setup section, test for _…
Browse files Browse the repository at this point in the history
…MSVC_LANG >= 201103L alongside __cplusplus >= 201103L.
  • Loading branch information
douzzer committed Sep 24, 2024
1 parent 72711b4 commit 267add1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wolfssl/wolfcrypt/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,8 @@ typedef struct w64wrapper {

#define WC_CPP_CAT_(a, b) a ## b
#define WC_CPP_CAT(a, b) WC_CPP_CAT_(a, b)
#if defined(__cplusplus) && (__cplusplus >= 201103L)
#if (defined(__cplusplus) && (__cplusplus >= 201103L)) || \
(defined(_MSVC_LANG) && (_MSVC_LANG >= 201103L))
#ifndef static_assert2
#define static_assert2 static_assert
#endif
Expand Down

0 comments on commit 267add1

Please sign in to comment.