Disable use of weak in threads_posix.h on Cygwin
[mesa.git] / include / c11 / threads_posix.h
index 61b7fabf6378f920e54b4d767ea27f11ca784d04..43e803ee8d18cabbeefad73d132c16ef87f0af78 100644 (file)
@@ -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);