From 04ec140a2e250a616794285e19d481cf3fa4e790 Mon Sep 17 00:00:00 2001 From: Will Newton Date: Mon, 17 Mar 2014 20:40:33 +0000 Subject: [PATCH] Revert "Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warning" This reverts commit 788bba368c2eaf8aa3fd2ca18d269395d6bc8afb. --- ChangeLog | 3 +++ nptl/sysdeps/pthread/pthread.h | 14 +++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 77c55d5cde..d6d30e9754 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-03-17 Will Newton + * nptl/sysdeps/pthread/pthread.h: Revert previous + change. + * sysdeps/generic/ldsodefs.h: Revert previous change. diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h index 142da639e4..1e0c5dc937 100644 --- a/nptl/sysdeps/pthread/pthread.h +++ b/nptl/sysdeps/pthread/pthread.h @@ -83,16 +83,12 @@ enum /* Mutex initializers. */ -#ifdef __PTHREAD_MUTEX_HAVE_ELISION -# if __PTHREAD_MUTEX_HAVE_ELISION == 1 /* 64bit layout. */ -# define __PTHREAD_SPINS 0, 0 -# elif __PTHREAD_MUTEX_HAVE_ELISION == 2 /* 32bit layout. */ -# define __PTHREAD_SPINS { 0, 0 } -# else -# error "Unknown value of __PTHREAD_MUTEX_HAVE_ELISION" -# endif +#if __PTHREAD_MUTEX_HAVE_ELISION == 1 /* 64bit layout. */ +#define __PTHREAD_SPINS 0, 0 +#elif __PTHREAD_MUTEX_HAVE_ELISION == 2 /* 32bit layout. */ +#define __PTHREAD_SPINS { 0, 0 } #else -# define __PTHREAD_SPINS 0 +#define __PTHREAD_SPINS 0 #endif #ifdef __PTHREAD_MUTEX_HAVE_PREV -- 2.43.5