mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-12-10 07:14:36 +01:00
Fix conflicting C++ linkage for pico_lwip panic() (#1167)
This commit is contained in:
parent
605e21ae6f
commit
488bd66eb3
1 changed files with 6 additions and 0 deletions
|
|
@ -70,7 +70,13 @@ typedef int sys_prot_t;
|
|||
#endif
|
||||
|
||||
#ifndef LWIP_PLATFORM_ASSERT
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
void panic(const char *fmt, ...);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#define LWIP_PLATFORM_ASSERT(x) panic(x)
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue