summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-09 15:15:50 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-09 15:15:50 +0000
commit56297a89040e5af221f8a7c00e3dff65cd062144 (patch)
tree3f0ffe058f2fb06c38b205e8e59ef3db41f50236
parent95e07778d4eca9c977f93bc3e5a4a770941d4924 (diff)
If _RWLOCK_DEFINE_FUNCTIONS is defined, then clear _EXTERN_INLINE, but
*after* header files have been included.
-rw-r--r--libthreads/rwlock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libthreads/rwlock.h b/libthreads/rwlock.h
index 44c1e0ec..7abbfff1 100644
--- a/libthreads/rwlock.h
+++ b/libthreads/rwlock.h
@@ -31,9 +31,14 @@ struct rwlock
int readers_waiting;
};
+#ifdef _RWLOCK_DEFINE_FUNCTIONS
+#undef _EXTERN_INLINE
+#define _EXTERN_INLINE
+#else /* ! _RWLOCK_DEFINE_FUNCTIONS */
#ifndef _EXTERN_INLINE
#define _EXTERN_INLINE extern __inline
#endif
+#endif /* _RWLOCK_DEFINE_FUNCTIONS */
/* Get a reader lock on reader-writer lock LOCK for disknode DN */
_EXTERN_INLINE void