Skip to content

Commit 149b968

Browse files
committed
Add error info.
1 parent 7bab32c commit 149b968

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/threading/include/threading/threading_atomic.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ extern "C" {
3535
#if __STDC_VERSION__ - 0L >= 201112L
3636
/* C11 support */
3737
#if defined(__STDC_NO_ATOMICS__)
38-
/* TODO: C11 atomics not supported, check the platform and implement support if needed */
38+
/* TODO: Using C11 but atomics not supported, check the platform and implement support if needed */
3939
#define THREADING_ATOMIC 0
40+
#error "Using C11 but atomics not supported, check the platform and implement support"
4041
#elif defined __has_include
4142
#if __has_include(<stdatomic.h>)
4243
#include <stdatomic.h>
@@ -49,6 +50,7 @@ extern "C" {
4950
#else
5051
/* TODO: C11 is not supported, check the platform and implement support if needed */
5152
#define THREADING_ATOMIC 0
53+
#error "C11 is not supported, check the platform and implement support"
5254
#endif
5355
#elif defined(_WIN32) && defined(_MSC_VER)
5456
#if (_MSC_VER < 1930)

0 commit comments

Comments
 (0)