From e69e2c6838a84ced873e456e4a48c6d36d950a0e Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Thu, 13 Mar 2008 12:57:19 +0100 Subject: [PATCH] Include compat/mingw.h early in git-compat-util.h. By doing so we can make the rest of git-compat-util.h believe that some functionality is actually available. Signed-off-by: Johannes Sixt --- git-compat-util.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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] == ':';