Skip to content

Commit

Permalink
- Fix inline issue with older compilers (gcc 4.2.2)
Browse files Browse the repository at this point in the history
ed note: this needs to be redone in memcached.h as a static inline, or changed
to a define.
  • Loading branch information
swills authored and dormando committed Feb 2, 2012
1 parent dece7f8 commit b19b41d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit b19b41d

Please sign in to comment.