Skip to content

Commit

Permalink
Fix static_assert compiler support
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebionne committed May 15, 2024
1 parent dcfaf85 commit 2f1b80b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compilersupport_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
# include <stdbool.h>
#endif

#if __STDC_VERSION__ >= 201112L || (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__cpp_static_assert) && __cpp_static_assert >= 200410)
#if __STDC_VERSION__ >= 202311L || (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__cpp_static_assert) && __cpp_static_assert >= 200410)
# define cbor_static_assert(x) static_assert(x, #x)
#elif !defined(__cplusplus) && defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 406) && (__STDC_VERSION__ > 199901L)
# define cbor_static_assert(x) _Static_assert(x, #x)
Expand Down

0 comments on commit 2f1b80b

Please sign in to comment.