File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
source/threading/include/threading Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments