Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pico-sdk
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microcontroller
pico-sdk
Commits
c526ec1c
Unverified
Commit
c526ec1c
authored
1 year ago
by
J
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
custom_(un)lock_tcpip_core: link properly in C++ (#1738)
parent
6ff3e4fa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rp2_common/pico_lwip/include/arch/cc.h
+9
-0
9 additions, 0 deletions
src/rp2_common/pico_lwip/include/arch/cc.h
with
9 additions
and
0 deletions
src/rp2_common/pico_lwip/include/arch/cc.h
+
9
−
0
View file @
c526ec1c
...
@@ -38,6 +38,10 @@
...
@@ -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);
...
@@ -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__ */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment