From: Jesse Natalie Date: Thu, 13 Aug 2020 20:10:41 +0000 (-0700) Subject: util/macros: Add ATTRIBUTE_NOINLINE definition for MSVC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=65d7172d171b5a209ddb9f90ea7acc8105452816;p=mesa.git util/macros: Add ATTRIBUTE_NOINLINE definition for MSVC Reviewed-by: Kristian H. Kristensen Part-of: --- diff --git a/src/util/macros.h b/src/util/macros.h index 57beaf72fae..04aec96b546 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -264,6 +264,8 @@ do { \ #if defined(__GNUC__) #define ATTRIBUTE_NOINLINE __attribute__((noinline)) +#elif defined(_MSC_VER) +#define ATTRIBUTE_NOINLINE __declspec(noinline) #else #define ATTRIBUTE_NOINLINE #endif