1
0
Fork 0
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:
hp.com!davidm 2004-04-23 00:12:51 +00:00
parent d0de283084
commit 9a9618401f

View file

@ -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>