Retain the old name for backwards compatibility. Signed-off-by: Antonin Décimo <anto...@tarides.com> --- mingw-w64-libraries/winpthreads/include/pthread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mingw-w64-libraries/winpthreads/include/pthread.h b/mingw-w64-libraries/winpthreads/include/pthread.h index e8df91e91..0ab7fef11 100644 --- a/mingw-w64-libraries/winpthreads/include/pthread.h +++ b/mingw-w64-libraries/winpthreads/include/pthread.h @@ -442,7 +442,8 @@ int WINPTHREAD_API pthread_rwlockattr_setpshared(pthread_ #define SEM_NSEMS_MAX 1024 /* Wrap cancellation points. */ -#ifdef __WINPTRHEAD_ENABLE_WRAP_API +#if defined(__WINPTHREAD_ENABLE_WRAP_API) \ + || defined(__WINPTRHEAD_ENABLE_WRAP_API) /* historical typo */ #define accept(...) (pthread_testcancel(), accept(__VA_ARGS__)) #define aio_suspend(...) (pthread_testcancel(), aio_suspend(__VA_ARGS__)) #define clock_nanosleep(...) (pthread_testcancel(), clock_nanosleep(__VA_ARGS__)) -- 2.43.0 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public