aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/semaphores.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/semaphores.h')
-rw-r--r--src/include/semaphores.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/semaphores.h b/src/include/semaphores.h
index bb25b4609..25f11b06b 100644
--- a/src/include/semaphores.h
+++ b/src/include/semaphores.h
@@ -27,7 +27,7 @@
#ifndef _SEMAPHORES_H_
#define _SEMAPHORES_H_
-#ifdef CH_USE_SEMAPHORES
+#if CH_USE_SEMAPHORES
/**
* @brief Semaphore structure.
@@ -46,13 +46,13 @@ extern "C" {
void chSemResetI(Semaphore *sp, cnt_t n);
msg_t chSemWait(Semaphore *sp);
msg_t chSemWaitS(Semaphore *sp);
-#ifdef CH_USE_SEMAPHORES_TIMEOUT
+#if CH_USE_SEMAPHORES_TIMEOUT
msg_t chSemWaitTimeout(Semaphore *sp, systime_t time);
msg_t chSemWaitTimeoutS(Semaphore *sp, systime_t time);
#endif
void chSemSignal(Semaphore *sp);
void chSemSignalI(Semaphore *sp);
-#ifdef CH_USE_SEMSW
+#if CH_USE_SEMSW
msg_t chSemSignalWait(Semaphore *sps, Semaphore *spw);
#endif
#ifdef __cplusplus