[newlib-cygwin] Use __inline in <sys/lock.h> for RTEMS

Corinna Vinschen corinna@sourceware.org
Thu Nov 17 10:57:00 GMT 2016


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9bbc5a34f2b4c3ce6d62744f30ba8ef0306271b9

commit 9bbc5a34f2b4c3ce6d62744f30ba8ef0306271b9
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Wed Nov 16 14:51:29 2016 +0100

    Use __inline in <sys/lock.h> for RTEMS
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/sys/rtems/include/sys/lock.h | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/newlib/libc/sys/rtems/include/sys/lock.h b/newlib/libc/sys/rtems/include/sys/lock.h
index e0d77cb..f716a69 100644
--- a/newlib/libc/sys/rtems/include/sys/lock.h
+++ b/newlib/libc/sys/rtems/include/sys/lock.h
@@ -82,7 +82,7 @@ struct _Futex_Control {
 
 #define _FUTEX_INITIALIZER { _THREAD_QUEUE_INITIALIZER }
 
-static inline void
+static __inline void
 _Mutex_Initialize(struct _Mutex_Control *_mutex)
 {
 	struct _Mutex_Control _init = _MUTEX_INITIALIZER;
@@ -98,14 +98,14 @@ int _Mutex_Try_acquire(struct _Mutex_Control *);
 
 void _Mutex_Release(struct _Mutex_Control *);
 
-static inline void
+static __inline void
 _Mutex_Destroy(struct _Mutex_Control *_mutex)
 {
 
 	(void)_mutex;
 }
 
-static inline void
+static __inline void
 _Mutex_recursive_Initialize(struct _Mutex_recursive_Control *_mutex)
 {
 	struct _Mutex_recursive_Control _init = _MUTEX_RECURSIVE_INITIALIZER;
@@ -122,14 +122,14 @@ int _Mutex_recursive_Try_acquire(struct _Mutex_recursive_Control *);
 
 void _Mutex_recursive_Release(struct _Mutex_recursive_Control *);
 
-static inline void
+static __inline void
 _Mutex_recursive_Destroy(struct _Mutex_recursive_Control *_mutex)
 {
 
 	(void)_mutex;
 }
 
-static inline void
+static __inline void
 _Condition_Initialize(struct _Condition_Control *_cond)
 {
 	struct _Condition_Control _init = _CONDITION_INITIALIZER;
@@ -152,14 +152,14 @@ void _Condition_Signal(struct _Condition_Control *);
 
 void _Condition_Broadcast(struct _Condition_Control *);
 
-static inline void
+static __inline void
 _Condition_Destroy(struct _Condition_Control *_cond)
 {
 
 	(void)_cond;
 }
 
-static inline void
+static __inline void
 _Semaphore_Initialize(struct _Semaphore_Control *_semaphore,
     unsigned int _count)
 {
@@ -172,14 +172,14 @@ void _Semaphore_Wait(struct _Semaphore_Control *);
 
 void _Semaphore_Post(struct _Semaphore_Control *);
 
-static inline void
+static __inline void
 _Semaphore_Destroy(struct _Semaphore_Control *_semaphore)
 {
 
 	(void)_semaphore;
 }
 
-static inline void
+static __inline void
 _Futex_Initialize(struct _Futex_Control *_futex)
 {
 	struct _Futex_Control _init = _FUTEX_INITIALIZER;
@@ -191,7 +191,7 @@ int _Futex_Wait(struct _Futex_Control *, int *, int);
 
 int _Futex_Wake(struct _Futex_Control *, int);
 
-static inline void
+static __inline void
 _Futex_Destroy(struct _Futex_Control *_futex)
 {



More information about the Newlib-cvs mailing list