Skip to content

Commit

Permalink
Fix compiling without _RETARGETABLE_LOCKING
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemasterplc authored and rasky committed Sep 1, 2024
1 parent 6ec65f8 commit c275c62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/system_newlib_locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include "kernel.h"
#include <stdio.h>

#ifdef _RETARGETABLE_LOCKING //Disable this file when compiling without retargetable locking support

/** Lock structure: use a kmutex from our kernel */
struct __lock {
kmutex_t mut;
Expand Down Expand Up @@ -108,3 +110,5 @@ void __retarget_lock_release_recursive (_LOCK_T lock) {
}

///@endcond

#endif

0 comments on commit c275c62

Please sign in to comment.