diff --git a/include/winnt.h b/include/winnt.h index c1f007d0536..e5dc402c694 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -155,6 +155,16 @@ extern "C" { # endif #endif +#ifndef DECLSPEC_NOINLINE +# if defined(_MSC_VER) && (_MSC_VER >= 1300) +# define DECLSPEC_NOINLINE __declspec(noinline) +# elif defined(__GNUC__) +# define DECLSPEC_NOINLINE __attribute__((noinline)) +# else +# define DECLSPEC_NOINLINE +# endif +#endif + #ifndef DECLSPEC_DEPRECATED # if defined(_MSC_VER) && (_MSC_VER >= 1300) && !defined(MIDL_PASS) # define DECLSPEC_DEPRECATED __declspec(deprecated)