From 355557bb4140ef1c6a25591af802164306209ebe Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 29 Oct 2011 19:36:39 -0700 Subject: [PATCH] wreadln.c: Win32 doesn't support polling, so disable this for now Win32 doesn't support polling, disabling it for now. Not exactly sure what this breaks, but win32 appears to run fine with this code disabled. --- src/wreadln.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wreadln.c b/src/wreadln.c index c6dbda7..44d0002 100644 --- a/src/wreadln.c +++ b/src/wreadln.c @@ -27,7 +27,7 @@ #include #include -#if defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE) +#if (defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE)) && !defined(WIN32) #include #endif @@ -322,7 +322,7 @@ static void wreadln_insert_byte(struct wreadln *wr, gint key) { size_t rest = strlen(wr->line + wr->cursor) + 1; -#if defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE) +#if (defined(ENABLE_WIDE) || defined(ENABLE_MULTIBYTE)) && !defined (WIN32) char buffer[32] = { key }; size_t length = 1; struct pollfd pfd = { -- 2.30.2