aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/include/chmempools.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/include/chmempools.h')
-rw-r--r--os/rt/include/chmempools.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/rt/include/chmempools.h b/os/rt/include/chmempools.h
index e1ee0d1a5..3e363f86d 100644
--- a/os/rt/include/chmempools.h
+++ b/os/rt/include/chmempools.h
@@ -28,7 +28,7 @@
#ifndef _CHMEMPOOLS_H_
#define _CHMEMPOOLS_H_
-#if CH_CFG_USE_MEMPOOLS || defined(__DOXYGEN__)
+#if (CH_CFG_USE_MEMPOOLS == TRUE) || defined(__DOXYGEN__)
/*===========================================================================*/
/* Module constants. */
@@ -42,7 +42,7 @@
/* Derived constants and error checks. */
/*===========================================================================*/
-#if !CH_CFG_USE_MEMCORE
+#if CH_CFG_USE_MEMCORE == FALSE
#error "CH_CFG_USE_MEMPOOLS requires CH_CFG_USE_MEMCORE"
#endif
@@ -161,7 +161,7 @@ static inline void chPoolAddI(memory_pool_t *mp, void *objp) {
chPoolFreeI(mp, objp);
}
-#endif /* CH_CFG_USE_MEMPOOLS */
+#endif /* CH_CFG_USE_MEMPOOLS == TRUE */
#endif /* _CHMEMPOOLS_H_ */