From 6e1203bd0d09413924024f0e9c3b207fcb105a08 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Fri, 10 Feb 2023 19:09:18 +0800 Subject: [PATCH] c11: Remove _MTX_INITIALIZER_NP as it's not used anymore Signed-off-by: Yonggang Luo Acked-by: David Heidelberg Acked-by: Eric Engestrom Part-of: --- src/c11/threads.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/c11/threads.h b/src/c11/threads.h index 59baea1..dbcb345 100644 --- a/src/c11/threads.h +++ b/src/c11/threads.h @@ -49,16 +49,6 @@ #if defined(HAVE_THRD_CREATE) #include - -#if defined(ANDROID) -/* Currently, only Android are verified that it's thrd_t are typedef of pthread_t - * So we can define _MTX_INITIALIZER_NP to PTHREAD_MUTEX_INITIALIZER - * FIXME: temporary non-standard hack to ease transition - */ -# define _MTX_INITIALIZER_NP PTHREAD_MUTEX_INITIALIZER -#else -#error Can not define _MTX_INITIALIZER_NP properly for this platform -#endif #else /*---------------------------- macros ---------------------------*/ @@ -129,8 +119,6 @@ typedef pthread_t thrd_t; typedef pthread_key_t tss_t; typedef pthread_mutex_t mtx_t; typedef pthread_once_t once_flag; -// FIXME: temporary non-standard hack to ease transition -# define _MTX_INITIALIZER_NP PTHREAD_MUTEX_INITIALIZER # define ONCE_FLAG_INIT PTHREAD_ONCE_INIT # ifdef PTHREAD_DESTRUCTOR_ITERATIONS # define TSS_DTOR_ITERATIONS PTHREAD_DESTRUCTOR_ITERATIONS -- 2.7.4