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

This commit is contained in:
Andrzej J. Skalski
2025-08-30 17:30:34 +00:00
committed by Jeremy Soller
parent 3bd7f21f05
commit 42493b88eb
+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