Code

wreadln: fix #ifdef for WIN32
authorMax Kellermann <max.kellermann@gmail.com>
Sat, 25 Mar 2017 20:32:43 +0000 (21:32 +0100)
committerMax Kellermann <max.kellermann@gmail.com>
Sat, 25 Mar 2017 20:32:45 +0000 (21:32 +0100)
src/wreadln.c

index 4dde082aa2948e78f9ef4f38619188c2f940cfe8..95267e28d539d28a79b77cf734c23e1a67320fcb 100644 (file)
@@ -286,7 +286,7 @@ static inline void drawline(const struct wreadln *wr)
        doupdate();
 }
 
        doupdate();
 }
 
-#if defined(HAVE_CURSES_ENHANCED) || defined(ENABLE_MULTIBYTE)
+#if (defined(HAVE_CURSES_ENHANCED) || defined(ENABLE_MULTIBYTE)) && !defined(WIN32)
 static bool
 multibyte_is_complete(const char *p, size_t length)
 {
 static bool
 multibyte_is_complete(const char *p, size_t length)
 {