commit | c5445fe0908d0bd8a062e0d29d9dcf4e4962e3c8 | [log] [tgz] |
---|---|---|
author | Johannes Sixt <j.sixt@viscovery.net> | Thu May 08 09:34:49 2008 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Thu May 08 17:47:25 2008 -0700 |
tree | c743f7f02786d8c364c4fae01dc04913ca8ad0f3 | |
parent | eb120e699f3faea2d71cd9cb79a8cf4f79ec1d45 [diff] [blame] |
compat-util: avoid macro redefinition warning Some systems define fopen as a macro based on compiler settings, and unconditionally redefining it triggers a compilation warning.
diff --git a/git-compat-util.h b/git-compat-util.h index 167c3fe..01c4045 100644 --- a/git-compat-util.h +++ b/git-compat-util.h
@@ -206,6 +206,9 @@ #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