From b08638d7c8e46b3a207705a2e55fdfe4b78cfb3e Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 7 Feb 2009 12:42:29 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@735 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chmsg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/chmsg.c') diff --git a/src/chmsg.c b/src/chmsg.c index 1afe1bc99..c2aee871e 100644 --- a/src/chmsg.c +++ b/src/chmsg.c @@ -26,9 +26,9 @@ #include -#ifdef CH_USE_MESSAGES +#if CH_USE_MESSAGES -#ifdef CH_USE_MESSAGES_PRIORITY +#if CH_USE_MESSAGES_PRIORITY #define msg_insert(tp, qp) prio_insert(tp, qp) #else #define msg_insert(tp, qp) queue_insert(tp, qp) @@ -59,7 +59,7 @@ msg_t chMsgSend(Thread *tp, msg_t msg) { return msg; } -#if defined(CH_USE_EVENTS) && defined(CH_USE_MESSAGES_EVENT) +#if CH_USE_EVENTS && CH_USE_MESSAGES_EVENT /** * @brief Sends a message to the specified thread and atomically pends an * events set. @@ -90,7 +90,7 @@ msg_t chMsgSendWithEvent(Thread *tp, msg_t msg, eventmask_t mask) { chSysUnlock(); return msg; } -#endif /* defined(CH_USE_EVENTS) && defined(CH_USE_MESSAGES_EVENT) */ +#endif /* CH_USE_EVENTS && CH_USE_MESSAGES_EVENT */ /** * @brief Suspends the thread and waits for an incoming message. -- cgit v1.2.3