diff options
author | Will Newton <will.newton@linaro.org> | 2014-03-17 20:40:33 +0000 |
---|---|---|
committer | Will Newton <will.newton@linaro.org> | 2014-03-17 20:40:33 +0000 |
commit | 04ec140a2e250a616794285e19d481cf3fa4e790 (patch) | |
tree | b3702865ea0186d3eb1cbd71a943cc77dc355b67 /nptl | |
parent | 7579d8d5cbe81f1eb8e99c5956ed5c9ff4006d4e (diff) | |
download | glibc-04ec140a2e250a616794285e19d481cf3fa4e790.zip glibc-04ec140a2e250a616794285e19d481cf3fa4e790.tar.gz glibc-04ec140a2e250a616794285e19d481cf3fa4e790.tar.bz2 |
Revert "Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warning"
This reverts commit 788bba368c2eaf8aa3fd2ca18d269395d6bc8afb.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/sysdeps/pthread/pthread.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/nptl/sysdeps/pthread/pthread.h b/nptl/sysdeps/pthread/pthread.h index 142da63..1e0c5dc 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 |