summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/msgqsubmit.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-30 14:34:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-11-30 14:34:49 +0000
commit183f774873622a62eebdff48e8e75e2816f22561 (patch)
tree1889f1e8e1a3b5238a2e86602fb2a913fbf93137 /cpukit/rtems/src/msgqsubmit.c
parent2000-11-30 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-183f774873622a62eebdff48e8e75e2816f22561.tar.bz2
2000-11-30 Joel Sherrill <joel@OARcorp.com>
* src/msgqsubmit.c: Modified multiprocessing conditional so this would compile with both macros and inlines.
Diffstat (limited to 'cpukit/rtems/src/msgqsubmit.c')
-rw-r--r--cpukit/rtems/src/msgqsubmit.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/cpukit/rtems/src/msgqsubmit.c b/cpukit/rtems/src/msgqsubmit.c
index 16f1c50266..a7139a86ac 100644
--- a/cpukit/rtems/src/msgqsubmit.c
+++ b/cpukit/rtems/src/msgqsubmit.c
@@ -52,6 +52,12 @@
* error code - if unsuccessful
*/
+#if defined(RTEMS_MULTIPROCESSING)
+#define MESSAGE_QUEUE_MP_HANDLER _Message_queue_Core_message_queue_mp_support
+#else
+#define MESSAGE_QUEUE_MP_HANDLER NULL
+#endif
+
rtems_status_code _Message_queue_Submit(
Objects_Id id,
void *buffer,
@@ -102,11 +108,7 @@ rtems_status_code _Message_queue_Submit(
buffer,
size,
id,
-#if defined(RTEMS_MULTIPROCESSING)
- _Message_queue_Core_message_queue_mp_support,
-#else
- NULL,
-#endif
+ MESSAGE_QUEUE_MP_HANDLER,
FALSE, /* sender does not block */
0 /* no timeout */
);
@@ -117,11 +119,7 @@ rtems_status_code _Message_queue_Submit(
buffer,
size,
id,
-#if defined(RTEMS_MULTIPROCESSING)
- _Message_queue_Core_message_queue_mp_support,
-#else
- NULL,
-#endif
+ MESSAGE_QUEUE_MP_HANDLER,
FALSE, /* sender does not block */
0 /* no timeout */
);