From 7c53d0c516138cfcad363ef6f6da897e7a5c891f Mon Sep 17 00:00:00 2001 From: Leonardo Date: Tue, 19 May 2020 12:58:26 -0300 Subject: [PATCH] Added missing include guards to mutex.h and thread.h --- src/utl/mutex.h | 5 +++++ src/utl/thread.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/utl/mutex.h b/src/utl/mutex.h index 7b51e3e..ef5be43 100644 --- a/src/utl/mutex.h +++ b/src/utl/mutex.h @@ -22,6 +22,9 @@ * - cmc_mtx_trylock */ +#ifndef CMC_MUTEX_H +#define CMC_MUTEX_H + #include #include "../cor/flags.h" @@ -210,3 +213,5 @@ static inline bool cmc_mtx_trylock(struct cmc_mutex *mtx) return err == 0; #endif } + +#endif /* CMC_MUTEX_H */ diff --git a/src/utl/thread.h b/src/utl/thread.h index 635860e..bf309fb 100644 --- a/src/utl/thread.h +++ b/src/utl/thread.h @@ -20,6 +20,9 @@ * - cmc_thrd_join */ +#ifndef CMC_THREAD_H +#define CMC_THREAD_H + #include #include @@ -171,3 +174,5 @@ static inline bool cmc_thrd_join(struct cmc_thread *thr, int *result) #endif } + +#endif /* CMC_THREAD_H */