Module: wine Branch: master Commit: d08723fbf797d89599255e4cd5cfe2f7d9cc8956 URL: https://gitlab.winehq.org/wine/wine/-/commit/d08723fbf797d89599255e4cd5cfe2f...
Author: Alexandre Julliard julliard@winehq.org Date: Wed Sep 13 22:05:17 2023 +0200
include: Add DECLSPEC_NOINLINE macro.
---
include/winnt.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
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)