summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Wills <steve@mouf.net>2012-02-02 14:32:50 -0500
committerdormando <dormando@rydia.net>2012-02-02 12:22:14 -0800
commitb19b41d968e064902dd585c68582b687e6ccdfc7 (patch)
tree587844620b2856df61d9faf143e273d6c707a110
parentdece7f87e789f35311bfab785fcd9a063ead1afd (diff)
downloadmemcached-b19b41d968e064902dd585c68582b687e6ccdfc7.tar.gz
- Fix inline issue with older compilers (gcc 4.2.2)1.4.13
ed note: this needs to be redone in memcached.h as a static inline, or changed to a define.
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 698ce73..a539dd6 100644
--- a/thread.c
+++ b/thread.c
@@ -78,7 +78,7 @@ static pthread_cond_t init_cond;
static void thread_libevent_process(int fd, short which, void *arg);
-inline unsigned short refcount_incr(unsigned short *refcount) {
+unsigned short refcount_incr(unsigned short *refcount) {
#ifdef HAVE_GCC_ATOMICS
return __sync_add_and_fetch(refcount, 1);
#elif defined(__sun)
@@ -93,7 +93,7 @@ inline unsigned short refcount_incr(unsigned short *refcount) {
#endif
}
-inline unsigned short refcount_decr(unsigned short *refcount) {
+unsigned short refcount_decr(unsigned short *refcount) {
#ifdef HAVE_GCC_ATOMICS
return __sync_sub_and_fetch(refcount, 1);
#elif defined(__sun)