mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-10 19:23:41 +01:00
(mutex_init): Explicitly test function-pointer against 0 since that avoids
a compiler-warning from icc v8.0. (mutex_lock): Likewise. (mutex_unlock): Likewise. (Logical change 1.213)
This commit is contained in:
parent
d0de283084
commit
9a9618401f
1 changed files with 6 additions and 3 deletions
|
@ -106,9 +106,12 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
#pragma weak pthread_mutex_lock
|
||||
#pragma weak pthread_mutex_unlock
|
||||
|
||||
#define mutex_init(l) (pthread_mutex_init ? pthread_mutex_init ((l), 0) : 0)
|
||||
#define mutex_lock(l) (pthread_mutex_lock ? pthread_mutex_lock (l) : 0)
|
||||
#define mutex_unlock(l) (pthread_mutex_unlock ? pthread_mutex_unlock (l) : 0)
|
||||
#define mutex_init(l) \
|
||||
(pthread_mutex_init != 0 ? pthread_mutex_init ((l), 0) : 0)
|
||||
#define mutex_lock(l) \
|
||||
(pthread_mutex_lock != 0 ? pthread_mutex_lock (l) : 0)
|
||||
#define mutex_unlock(l) \
|
||||
(pthread_mutex_unlock != 0 ? pthread_mutex_unlock (l) : 0)
|
||||
|
||||
#ifdef HAVE_ATOMIC_OPS_H
|
||||
# include <atomic_ops.h>
|
||||
|
|
Loading…
Reference in a new issue