summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_user.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'include/dlt/dlt_user.h.in')
-rw-r--r--include/dlt/dlt_user.h.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dlt/dlt_user.h.in b/include/dlt/dlt_user.h.in
index 2c42603..b377dac 100644
--- a/include/dlt/dlt_user.h.in
+++ b/include/dlt/dlt_user.h.in
@@ -74,6 +74,8 @@
\{
*/
+#include <stdbool.h>
+
#ifndef DLT_NETWORK_TRACE_ENABLE
#cmakedefine DLT_NETWORK_TRACE_ENABLE
#endif
@@ -111,7 +113,7 @@ extern "C" {
#define DLT_SEM_LOCK() do{\
while ((sem_wait(&dlt_mutex) == -1) && (errno == EINTR)) \
continue; /* Restart if interrupted */ \
- } while(0)
+ } while(false)
#define DLT_SEM_FREE() { sem_post(&dlt_mutex); }
/**