From: Erik Faye-Lund Date: Mon, 25 Jun 2012 14:13:59 +0000 (+0200) Subject: compat/terminal: header-fixup X-Git-Url: https://repo.or.cz/w/git/dscho.git/commitdiff_plain/911808f4dcd0d75c22d6e5592d0a8e96815af992 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 --- 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 e6f12cc458..6429352c8d 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -90,6 +90,7 @@ #define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */ #include #include +#include #endif #include