fixing bindgen c++ [[noreturn]] issue.
This commit is contained in:
committed by
Jeremy Soller
parent
3bd7f21f05
commit
42493b88eb
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user