From d9215c962be9e94721f6a5565da46891a157f249 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 7 May 2009 14:46:48 +0200 Subject: [PATCH] winansi: fix compile warnings Signed-off-by: Johannes Schindelin --- compat/win32.h | 1 + compat/winansi.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compat/win32.h b/compat/win32.h index c26384e595..d531130b12 100644 --- a/compat/win32.h +++ b/compat/win32.h @@ -1,5 +1,6 @@ /* common Win32 functions for MinGW and Cygwin */ #include +#include static inline int file_attr_to_st_mode (DWORD attr) { diff --git a/compat/winansi.c b/compat/winansi.c index 4bee335f9e..9217c24b43 100644 --- a/compat/winansi.c +++ b/compat/winansi.c @@ -80,7 +80,7 @@ static void set_console_attr(void) static void erase_in_line(void) { CONSOLE_SCREEN_BUFFER_INFO sbi; - long dummy; /* Needed for Windows 7 (or Vista) regression */ + DWORD dummy; /* Needed for Windows 7 (or Vista) regression */ if (!console) return;