diff options
-rw-r--r-- | include/c11/threads_posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h index 61b7fabf637..43e803ee8d1 100644 --- a/include/c11/threads_posix.h +++ b/include/c11/threads_posix.h @@ -184,7 +184,7 @@ mtx_destroy(mtx_t *mtx) * Thus the linker will be happy and things don't clash when building * with -O1 or greater. */ -#ifdef HAVE_FUNC_ATTRIBUTE_WEAK +#if defined(HAVE_FUNC_ATTRIBUTE_WEAK) && !defined(__CYGWIN__) __attribute__((weak)) int pthread_mutexattr_init(pthread_mutexattr_t *attr); |