mirror of
https://github.com/git/git.git
synced 2026-02-17 21:28:11 +00:00
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:
committed by
Pat Thoyts
parent
431fa8f83c
commit
580ceb1c65
@@ -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"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include "../git-compat-util.h"
|
||||
#include "win32.h"
|
||||
#include <conio.h>
|
||||
#include "../strbuf.h"
|
||||
|
||||
#include "mingw.c"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user