diff options
Diffstat (limited to 'source/blender/blenlib/BLI_compiler_compat.h')
-rw-r--r-- | source/blender/blenlib/BLI_compiler_compat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_compiler_compat.h b/source/blender/blenlib/BLI_compiler_compat.h index 80c564a70c7..bd1cd327d3c 100644 --- a/source/blender/blenlib/BLI_compiler_compat.h +++ b/source/blender/blenlib/BLI_compiler_compat.h @@ -45,4 +45,10 @@ template<typename T> static inline T decltype_helper(T x) # define BLI_INLINE static inline __attribute__((always_inline)) __attribute__((__unused__)) # endif +# if defined(__GNUC__) +# define BLI_NOINLINE __attribute__((noinline)) +# else +# define BLI_NOINLINE +# endif + #endif /* __BLI_COMPILER_COMPAT_H__ */ |