Merge branch 'fix_clang_bindgen_issue' into 'master'

fixing bindgen c++ [[noreturn]] issue.

See merge request redox-os/relibc!697
This commit is contained in:
Jeremy Soller
2025-08-30 11:30:34 -06:00
+1 -1
View File
@@ -61,7 +61,7 @@
// Analogous to Rust's Never type
//TODO: clang fails to compile C with [[noreturn]]
#if defined(__cplusplus) && __HAS_ATTRIBUTE(noreturn)
#if defined(__cplusplus) && __HAS_ATTRIBUTE(noreturn) && !(__clang__)
#define __noreturn [[noreturn]]
// #elif __STDC_VERSION__ >= 201112L
// FIXME: cbindgen incorrectly places _Noreturn