[PATCH 05/11 v2] MinGW: fix warning about implicit declaration of _getch()
- From
Steffen Prohaska <prohaska@zib.de>
- Date
- Jun 1, 2009, 06:41 UTC
- Message-ID
- <1243838505-27641-1-git-send-email-prohaska@zib.de>
- In-Reply-To
- <200905312152.11434.j6t@kdbg.org>
From: Johannes Schindelin <johannes.schindelin@gmx.de>
conio.h provides the declaration.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Steffen Prohaska <prohaska@zib.de> --- compat/mingw.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
This replaces 05/11. The original commit messages was misleading. Apparently, the original 05/11 solved two things. First, it fixed a warning in winansi.c, which has been squashed into 03/11. Second, it fixed a warning about implict decl of _getch(). Including conio.h in mingw.c is sufficient to fix this warning.
diff --git a/compat/mingw.c b/compat/mingw.c index e190fdd..12d0c2f 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -1,5 +1,6 @@ #include "../git-compat-util.h" #include "win32.h" +#include <conio.h> #include "../strbuf.h" unsigned int _CRT_fmode = _O_BINARY;
-- 1.6.3.1.54.g99dd