Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Fix inline issue with older compilers (gcc 4.2.2)

ed note: this needs to be redone in memcached.h as a static inline, or changed
to a define.
  • Loading branch information...
commit b19b41d968e064902dd585c68582b687e6ccdfc7 1 parent dece7f8
@swills swills authored dormando committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 thread.c
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.