diff --git a/include/winnt.h b/include/winnt.h index b83f588a16d..c230fa0cd7f 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -123,10 +123,14 @@ extern "C" { #endif #ifndef NOP_FUNCTION -# if defined(_MSC_VER) && (_MSC_VER >= 1210) -# define NOP_FUNCTION __noop +# if defined(_MSC_VER) +# if (_MSC_VER >= 1210) +# define NOP_FUNCTION __noop +# else +# define NOP_FUNCTION (void)0 +# endif # else -# define NOP_FUNCTION (void)0 +# define NOP_FUNCTION(...) # endif #endif