From 514c0b3d06abed9751f258369c969fdaf4de6bcb Mon Sep 17 00:00:00 2001 From: Peter Jas Date: Wed, 27 May 2015 00:38:33 +0300 Subject: [PATCH] windows: MSVC 2015 has C99 inline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prior to MSVC 2015, the standard C99 `inline` keyword was missing, added a compiler version check and disabled the inline replacement for MSVC >= 2015 in test/task.h. Refs: https://github.com/libuv/libuv/pull/341 PR-URL: https://github.com/libuv/libuv/pull/369 Reviewed-By: Saúl Ibarra Corretgé --- test/task.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/task.h b/test/task.h index e06a50e2..e7367638 100644 --- a/test/task.h +++ b/test/task.h @@ -179,8 +179,8 @@ enum test_status { #include -/* Define inline for MSVC */ -# ifdef _MSC_VER +/* Define inline for MSVC<2015 */ +# if defined(_MSC_VER) && _MSC_VER < 1900 # define inline __inline # endif