diff --git a/common/win/wintime.h b/common/win/wintime.h index d763eaa2d..781bbe563 100644 --- a/common/win/wintime.h +++ b/common/win/wintime.h @@ -3,6 +3,11 @@ #include #include +// HACK: This include 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 +#include #include #ifdef __cplusplus