Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
compat/winansi: support compiling with MSys2
author
Johannes Schindelin
<johannes.schindelin@gmx.de>
Thu, 14 Jan 2016 16:52:02 +0000
(17:52 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 14 Jan 2016 20:21:00 +0000
(12:21 -0800)
MSys2 already defines the _CONSOLE_FONT_INFOEX structure.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/winansi.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
3ecd153
)
diff --git
a/compat/winansi.c
b/compat/winansi.c
index ceff55bd67696403f374f68ae6d3db97f603aebe..3aa5535f5decc3bed5a8c9b54348d9b9ff8e261f 100644
(file)
--- a/
compat/winansi.c
+++ b/
compat/winansi.c
@@
-23,6
+23,7
@@
static HANDLE hthread, hread, hwrite;
static HANDLE hconsole1, hconsole2;
#ifdef __MINGW32__
+#if !defined(__MINGW64_VERSION_MAJOR) || __MINGW64_VERSION_MAJOR < 5
typedef struct _CONSOLE_FONT_INFOEX {
ULONG cbSize;
DWORD nFont;
@@
-32,6
+33,7
@@
typedef struct _CONSOLE_FONT_INFOEX {
WCHAR FaceName[LF_FACESIZE];
} CONSOLE_FONT_INFOEX, *PCONSOLE_FONT_INFOEX;
#endif
+#endif
typedef BOOL (WINAPI *PGETCURRENTCONSOLEFONTEX)(HANDLE, BOOL,
PCONSOLE_FONT_INFOEX);