summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/macros/rtems/posix/mutex.inl
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/macros/rtems/posix/mutex.inl')
-rw-r--r--cpukit/posix/macros/rtems/posix/mutex.inl10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/posix/macros/rtems/posix/mutex.inl b/cpukit/posix/macros/rtems/posix/mutex.inl
index f1b9c98a8f..15265738ab 100644
--- a/cpukit/posix/macros/rtems/posix/mutex.inl
+++ b/cpukit/posix/macros/rtems/posix/mutex.inl
@@ -67,7 +67,10 @@
} \
} while (0)
-static POSIX_Mutex_Control * _POSIX_Mutex_Get(
+/* If we find a compiler that doesn't accept static inline functions,
+ * then this will have to move to a .c file. Until then, we will use this.
+ */
+static inline POSIX_Mutex_Control * _POSIX_Mutex_Get(
Objects_Id *id,
Objects_Locations *location
)
@@ -78,7 +81,10 @@ static POSIX_Mutex_Control * _POSIX_Mutex_Get(
_Objects_Get( &_POSIX_Mutex_Information, *id, location );
}
-static POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable(
+/* If we find a compiler that doesn't accept static inline functions,
+ * then this will have to move to a .c file. Until then, we will use this.
+ */
+static inline POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable(
Objects_Id *id,
Objects_Locations *location,
ISR_Level *level