windows: MSVC 2015 has C99 inline
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é <saghul@gmail.com>
This commit is contained in:
parent
c0c26a0f07
commit
514c0b3d06
@ -179,8 +179,8 @@ enum test_status {
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
/* Define inline for MSVC */
|
||||
# ifdef _MSC_VER
|
||||
/* Define inline for MSVC<2015 */
|
||||
# if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
# define inline __inline
|
||||
# endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user