Skip to content

Commit c526ec1

Browse files
authored
custom_(un)lock_tcpip_core: link properly in C++ (#1738)
1 parent 6ff3e4f commit c526ec1

File tree

1 file changed

+9
-0
lines changed
  • src/rp2_common/pico_lwip/include/arch

1 file changed

+9
-0
lines changed

src/rp2_common/pico_lwip/include/arch/cc.h

+9
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
#define PICO_LWIP_CUSTOM_LOCK_TCPIP_CORE 1
3939
#endif
4040

41+
#ifdef __cplusplus
42+
extern "C" {
43+
#endif
44+
4145
#if NO_SYS
4246
// todo really we should just not allow SYS_LIGHTWEIGHT_PROT for nosys mode (it doesn't do anything anyway)
4347
typedef int sys_prot_t;
@@ -90,4 +94,9 @@ void pico_lwip_custom_unlock_tcpip_core(void);
9094
// Use the pico_rand library which goes to reasonable lengths to try to provide good entropy
9195
#define LWIP_RAND() get_rand_32()
9296
#endif
97+
98+
#ifdef __cplusplus
99+
}
100+
#endif
101+
93102
#endif /* __CC_H__ */

0 commit comments

Comments
 (0)