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 <johannes.sixt@telecom.at>
This commit is contained in:
Johannes Sixt
2008-03-13 12:57:19 +01:00
parent 9ce71e6df0
commit e69e2c6838

View File

@@ -89,7 +89,10 @@
#include <grp.h>
#define _ALL_SOURCE 1
#endif
#endif /* !__MINGW32__ */
#else /* __MINGW32__ */
/* pull in Windows compatibility stuff */
#include "compat/mingw.h"
#endif /* __MINGW32__ */
#ifndef NO_ICONV
#include <iconv.h>
@@ -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] == ':';