Skip to content

Conversation

@dgburr
Copy link

@dgburr dgburr commented Oct 25, 2025

Version 13 of MinGW-W64 changed the declaration of clock_gettime() in pthread_time.h to a function definition which calls either clock_gettime32() or clock_gettime64(), see https://github.com/mingw-w64/mingw-w64/blob/v13.x/mingw-w64-libraries/winpthreads/include/pthread_time.h. This conflicts with check's definition of clock_gettime() in clock_gettime.c. In order to prevent this, we can define WIN_PTHREADS_TIME_H in libcompat.h to prevent the contents of pthread_time.h from being included.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant