From a464b3e17abc16b3ece8fa8c4b4e98a499873b45 Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Mon, 1 Jun 2009 08:15:12 +0200 Subject: [PATCH] Move conio.h from win32.h to mingw.c We need conio.h to avoid a warning about the implicit declaration of _getch(). Including it in mingw.c is sufficient. --- compat/mingw.c | 1 + compat/win32.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/mingw.c b/compat/mingw.c index d85d68065e..bed417875e 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -1,5 +1,6 @@ #include "../git-compat-util.h" #include "win32.h" +#include #include "../strbuf.h" unsigned int _CRT_fmode = _O_BINARY; diff --git a/compat/win32.h b/compat/win32.h index d531130b12..c26384e595 100644 --- a/compat/win32.h +++ b/compat/win32.h @@ -1,6 +1,5 @@ /* common Win32 functions for MinGW and Cygwin */ #include -#include static inline int file_attr_to_st_mode (DWORD attr) {