mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-02-05 18:40:21 +00:00
custom_(un)lock_tcpip_core: link properly in C++ (#1738)
This commit is contained in:
parent
6ff3e4fab2
commit
c526ec1c3d
@ -38,6 +38,10 @@
|
|||||||
#define PICO_LWIP_CUSTOM_LOCK_TCPIP_CORE 1
|
#define PICO_LWIP_CUSTOM_LOCK_TCPIP_CORE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
// todo really we should just not allow SYS_LIGHTWEIGHT_PROT for nosys mode (it doesn't do anything anyway)
|
// todo really we should just not allow SYS_LIGHTWEIGHT_PROT for nosys mode (it doesn't do anything anyway)
|
||||||
typedef int sys_prot_t;
|
typedef int sys_prot_t;
|
||||||
@ -90,4 +94,9 @@ void pico_lwip_custom_unlock_tcpip_core(void);
|
|||||||
// Use the pico_rand library which goes to reasonable lengths to try to provide good entropy
|
// Use the pico_rand library which goes to reasonable lengths to try to provide good entropy
|
||||||
#define LWIP_RAND() get_rand_32()
|
#define LWIP_RAND() get_rand_32()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __CC_H__ */
|
#endif /* __CC_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user