mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'fix/cxx_noreturn_issue_v5.5' into 'release/v5.5'
fix(libc): picolibc: workaround wrong pthread_exit declaration for c++ (v5.5) See merge request espressif/esp-idf!48089
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -10,3 +10,14 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#endif
|
||||
|
||||
#if CONFIG_LIBC_PICOLIBC // TODO IDF-15569
|
||||
#undef __noreturn
|
||||
#if __has_attribute(__noreturn__)
|
||||
#define __noreturn __attribute__((__noreturn__))
|
||||
#else
|
||||
#define __noreturn
|
||||
#endif
|
||||
#else
|
||||
#define __noreturn
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user