mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-28 14:54:05 +00:00
sys.h: Avoid un #defined LWIP_COMPAT_MUTEX macro (usually #defined in arch/sys_arch.h)
This commit is contained in:
parent
fd4a109ffa
commit
3b5803ec9a
@ -99,6 +99,10 @@ typedef void (*lwip_thread_fn)(void *arg);
|
|||||||
|
|
||||||
/** Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
|
/** Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
|
||||||
should be used instead */
|
should be used instead */
|
||||||
|
#ifndef LWIP_COMPAT_MUTEX
|
||||||
|
#define LWIP_COMPAT_MUTEX 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if LWIP_COMPAT_MUTEX
|
#if LWIP_COMPAT_MUTEX
|
||||||
/* for old ports that don't have mutexes: define them to binary semaphores */
|
/* for old ports that don't have mutexes: define them to binary semaphores */
|
||||||
#define sys_mutex_t sys_sem_t
|
#define sys_mutex_t sys_sem_t
|
||||||
|
Loading…
x
Reference in New Issue
Block a user