# HG changeset patch # User Matti Hamalainen # Date 1103998683 0 # Node ID 3fa91026950831a003994b96252d158747514e96 # Parent 5a50071cca9d1a1a3d57fc88908696dcaf458f2b Remove extra semicolon from macro definition, #undef DEBUG diff -r 5a50071cca9d -r 3fa910269508 src/xmms-sid.h --- a/src/xmms-sid.h Sat Dec 25 18:17:01 2004 +0000 +++ b/src/xmms-sid.h Sat Dec 25 18:18:03 2004 +0000 @@ -44,7 +44,7 @@ * Some constants and defines */ /* Define for spurious debugging messages */ -#define DEBUG +#undef DEBUG /* Define to enable non-portable thread and mutex debugging code. * (Works probably with Linux glibc only) @@ -93,12 +93,12 @@ #define XS_MPP(M) M ## _mutex #if XS_MUTEX_DEBUG #define XS_MUTEX(M) pthread_mutex_t XS_MPP(M) = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP; int M ## _qq; -#define XS_MUTEX_H(M) extern pthread_mutex_t XS_MPP(M); extern int M ## _qq; +#define XS_MUTEX_H(M) extern pthread_mutex_t XS_MPP(M); extern int M ## _qq #define XS_MUTEX_LOCK(M) { M ## _qq = pthread_mutex_lock(&XS_MPP(M)); if (M ## _qq) XSDEBUG("XS_MUTEX_LOCK(" #M ") == %i\n", M ## _qq); } #define XS_MUTEX_UNLOCK(M) { M ## _qq = pthread_mutex_unlock(&XS_MPP(M)); if (M ## _qq) XSDEBUG("XS_MUTEX_UNLOCK(" #M ") == %i\n", M ## _qq); } #else #define XS_MUTEX(M) pthread_mutex_t XS_MPP(M) = PTHREAD_MUTEX_INITIALIZER -#define XS_MUTEX_H(M) extern pthread_mutex_t XS_MPP(M); +#define XS_MUTEX_H(M) extern pthread_mutex_t XS_MPP(M) #define XS_MUTEX_LOCK(M) pthread_mutex_lock(&XS_MPP(M)) #define XS_MUTEX_UNLOCK(M) pthread_mutex_unlock(&XS_MPP(M)) #endif