rx-internal-use-static-inline-macro-20090407
authorDerrick Brashear <shadow@dementia.org>
Tue, 7 Apr 2009 14:00:56 +0000 (14:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Apr 2009 14:00:56 +0000 (14:00 +0000)
LICENSE IPL10

some platforms can't use "static inline"

src/rx/rx_internal.h

index 3294226..960f99a 100644 (file)
@@ -105,7 +105,7 @@ static inline afs_int32 rx_AtomicSwap_int(afs_int32 *oldval, afs_int32 newval) {
 #define rx_AtomicDecrement(object, mutex) rx_MutexDecrement(object, mutex)
 #define rx_AtomicSwap_NL(oldval, newval) rx_AtomicSwap_int(oldval, newval)
 #define rx_AtomicSwap(oldval, newval, mutex) rx_AtomicSwap_int(oldval, newval)
-static inline afs_int32 rx_AtomicSwap_int(afs_int32 *oldval, afs_int32 newval) {
+static_inline afs_int32 rx_AtomicSwap_int(afs_int32 *oldval, afs_int32 newval) {
     afs_int32 ret = *oldval;
     *oldval = newval;
     return ret;