From: Avuton Olrich Date: Sun, 30 Oct 2011 02:36:39 +0000 (-0700) Subject: wreadln.c: Win32 doesn't support polling, so disable this for now X-Git-Tag: release-0.20~64 X-Git-Url: https://git.tokkee.org/?p=ncmpc.git;a=commitdiff_plain;h=355557bb4140ef1c6a25591af802164306209ebe 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. --- 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 = {