Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Including pthread.h is a workaround for a bug in the MinGW headers, where pthread.h (which defines _POSIX_THREAD_SAFE_FUNCTIONS) has to be included before time.h so that time.h defines localtime_r correctly, wich depends in _POSIX_THREAD_SAFE_FUNCTIONS being defined previously. Compilation error: [...]srt_compat.h:78:9: error: 'localtime_r' was not declared in this scope
- Loading branch information