Skip to content

Commit f07fa0f

Browse files
committed
Use static_assert macro instead of Static_assert
1 parent d8e7cdf commit f07fa0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/tinycbor/compilersupport_p.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ extern "C" {
5353
#endif
5454

5555
#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L || __cpp_static_assert >= 200410
56-
# define cbor_static_assert(x) _Static_assert(x, #x)
56+
# define cbor_static_assert(x) static_assert(x, #x)
5757
#elif !defined(__cplusplus) && defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406) && (__STDC_VERSION__ > 199901L)
58-
# define cbor_static_assert(x) _Static_assert(x, #x)
58+
# define cbor_static_assert(x) static_assert(x, #x)
5959
#else
6060
# define cbor_static_assert(x) ((void)sizeof(char[2*!!(x) - 1]))
6161
#endif

0 commit comments

Comments
 (0)