diff --git a/git-compat-util.h b/git-compat-util.h index 6d22739eac..73b08397c9 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -89,7 +89,10 @@ #include #define _ALL_SOURCE 1 #endif -#endif /* !__MINGW32__ */ +#else /* __MINGW32__ */ +/* pull in Windows compatibility stuff */ +#include "compat/mingw.h" +#endif /* __MINGW32__ */ #ifndef NO_ICONV #include @@ -468,8 +471,6 @@ void git_qsort(void *base, size_t nmemb, size_t size, #ifdef __MINGW32__ -#include "compat/mingw.h" - static inline int has_dos_drive_prefix(const char *path) { return isalpha(*path) && path[1] == ':';