From c4ff5decf8b35572f5a33b8f56affce0cb02e903 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 25 Jun 2012 16:13:59 +0200 Subject: [PATCH] compat/terminal: header-fixup getch is declared in conio.h, which was only included from compat/mingw.c and compat/msvc.c. Fix this, by moving the inclusion of getch to git-compat-util.h instead. Signed-off-by: Erik Faye-Lund --- compat/mingw.c | 1 - compat/msvc.c | 1 - git-compat-util.h | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index ecbfa6e597..1eb974fcc9 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -1,6 +1,5 @@ #include "../git-compat-util.h" #include "win32.h" -#include #include #include "../strbuf.h" #include "../run-command.h" diff --git a/compat/msvc.c b/compat/msvc.c index 71843d7eef..a3a4e0e952 100644 --- a/compat/msvc.c +++ b/compat/msvc.c @@ -1,6 +1,5 @@ #include "../git-compat-util.h" #include "win32.h" -#include #include "../strbuf.h" #include "mingw.c" diff --git a/git-compat-util.h b/git-compat-util.h index 9d8b28a54e..ae6fc604a8 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -89,6 +89,7 @@ #define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */ #include #include +#include #endif #include -- 2.11.4.GIT