Fix conflicting C++ linkage for pico_lwip panic() (#1167)

This commit is contained in:
ryanjsims 2023-01-09 08:49:25 -07:00 committed by GitHub
parent 605e21ae6f
commit 488bd66eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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