Skip to content

Commit

Permalink
custom_(un)lock_tcpip_core: link properly in C++ (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguilar authored Jun 20, 2024
1 parent 6ff3e4f commit c526ec1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/rp2_common/pico_lwip/include/arch/cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
#define PICO_LWIP_CUSTOM_LOCK_TCPIP_CORE 1
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if NO_SYS
// todo really we should just not allow SYS_LIGHTWEIGHT_PROT for nosys mode (it doesn't do anything anyway)
typedef int sys_prot_t;
Expand Down Expand Up @@ -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
#define LWIP_RAND() get_rand_32()
#endif

#ifdef __cplusplus
}
#endif

#endif /* __CC_H__ */

0 comments on commit c526ec1

Please sign in to comment.