util/macros: Add ATTRIBUTE_NOINLINE definition for MSVC
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6303>
This commit is contained in:
parent
58af31186a
commit
65d7172d17
|
@ -264,6 +264,8 @@ do { \
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#define ATTRIBUTE_NOINLINE __attribute__((noinline))
|
#define ATTRIBUTE_NOINLINE __attribute__((noinline))
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
#define ATTRIBUTE_NOINLINE __declspec(noinline)
|
||||||
#else
|
#else
|
||||||
#define ATTRIBUTE_NOINLINE
|
#define ATTRIBUTE_NOINLINE
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue