mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(libc): picolibc: workaround wrong pthread_exit declaration for c++
This commit is contained in:
@@ -12,9 +12,11 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#if CONFIG_LIBC_PICOLIBC
|
||||
#if defined(__cplusplus) && __cplusplus >= 201103L
|
||||
#define __noreturn [[noreturn]]
|
||||
#elif __has_attribute(__noreturn__)
|
||||
// TODO IDF-15569
|
||||
// #if defined(__cplusplus) && __cplusplus >= 201103L
|
||||
// #define __noreturn [[noreturn]]
|
||||
// #elif __has_attribute(__noreturn__)
|
||||
#if __has_attribute(__noreturn__)
|
||||
#define __noreturn __attribute__((__noreturn__))
|
||||
#else
|
||||
#define __noreturn
|
||||
|
||||
Reference in New Issue
Block a user