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 <kusmabite@gmail.com>
This commit is contained in:
Erik Faye-Lund
2012-06-25 16:13:59 +02:00
committed by Pat Thoyts
parent 431fa8f83c
commit 580ceb1c65
3 changed files with 1 additions and 2 deletions

View File

@@ -1,6 +1,5 @@
#include "../git-compat-util.h"
#include "win32.h"
#include <conio.h>
#include <wchar.h>
#include "../strbuf.h"
#include "../run-command.h"

View File

@@ -1,6 +1,5 @@
#include "../git-compat-util.h"
#include "win32.h"
#include <conio.h>
#include "../strbuf.h"
#include "mingw.c"

View File

@@ -90,6 +90,7 @@
#define WIN32_LEAN_AND_MEAN /* stops windows.h including winsock.h */
#include <winsock2.h>
#include <windows.h>
#include <conio.h>
#endif
#include <unistd.h>