about summary refs log tree commit diff stats
path: root/src/LYCurses.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYCurses.c')
-rw-r--r--src/LYCurses.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c
index 5058f989..5ef96702 100644
--- a/src/LYCurses.c
+++ b/src/LYCurses.c
@@ -1,6 +1,12 @@
 #include <HTUtils.h>
 #include <HTAlert.h>
 
+#ifdef __MINGW32__
+#ifdef UNIX
+#undef UNIX
+#endif /* UNIX */
+#endif /* __MINGW32__ */
+
 #include <LYCurses.h>
 #include <LYStyle.h>
 #include <LYUtils.h>
@@ -1327,8 +1333,12 @@ PUBLIC void stop_curses NOARGS
 #ifdef __DJGPP__
     ScreenClear();
 #else
+#ifdef __MINGW32__
+    clear();
+#else
     clrscr();
 #endif
+#endif
 #else
 
     if(LYCursesON == TRUE)	{
@@ -2691,10 +2701,11 @@ PRIVATE void make_blink_boldbg NOARGS
  */
 PUBLIC long LYgetattrs ARGS1(WINDOW *, win)
 {
-    attr_t result = 0;
 #if (defined(NCURSES_VERSION_MAJOR) && NCURSES_VERSION_MAJOR < 5) || !defined(NCURSES_MAJOR_VERSION)
+    long result = 0;
     result = getattrs(win);
 #else
+    attr_t result = 0;
     short pair = 0;
 
     wattr_get(win, &result, &pair, NULL);