include: Add DECLSPEC_NOINLINE macro.

This commit is contained in:
Alexandre Julliard 2023-09-13 22:05:17 +02:00
parent 50dfe977b7
commit d08723fbf7

View file

@ -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)