From 250eaf43994bbe67218423a83c19d402da5b9338 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 10 Aug 2016 22:39:26 +0100 Subject: [PATCH] Revert "win,tty: remove no longer needed workaround" This reverts commit 7892bd6f767b6969f2d6f767523500227f15a6f0. The reasoning for the original patch was flawed. On x86 systems _InterlockedOr intrinsic must be used. MinGW also exposes the problem, so reverting this gets rid of a warning. PR-URL: https://github.com/libuv/libuv/pull/990 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- src/win/tty.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/win/tty.c b/src/win/tty.c index 43e6029dd..0c20e6e4a 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -35,6 +35,10 @@ #include "stream-inl.h" #include "req-inl.h" +#ifndef InterlockedOr +# define InterlockedOr _InterlockedOr +#endif + #define UNICODE_REPLACEMENT_CHARACTER (0xfffd) #define ANSI_NORMAL 0x00