X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-compat-util.h;h=01c4045e89a2e156062255193ed5d865fdf8a922;hb=06f60e8edf1eb3a91e1af6f255bf46154168dd86;hp=167c3fe63a4fd9ca4abf5c16694e22a9ae22717b;hpb=dc484f2213a34ced5abe5eb968650035204b6035;p=git.git diff --git a/git-compat-util.h b/git-compat-util.h index 167c3fe63..01c4045e8 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -206,6 +206,9 @@ void *gitmemmem(const void *haystack, size_t haystacklen, #endif #ifdef FREAD_READS_DIRECTORIES +#ifdef fopen +#undef fopen +#endif #define fopen(a,b) git_fopen(a,b) extern FILE *git_fopen(const char*, const char*); #endif