Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_math_inline.h
| Show All 22 Lines | |||||
| # define MINLINE static inline | # define MINLINE static inline | ||||
| # define MALWAYS_INLINE static inline __attribute__((always_inline)) __attribute__((unused)) | # define MALWAYS_INLINE static inline __attribute__((always_inline)) __attribute__((unused)) | ||||
| # endif | # endif | ||||
| #else | #else | ||||
| # define MINLINE | # define MINLINE | ||||
| # define MALWAYS_INLINE | # define MALWAYS_INLINE | ||||
| #endif | #endif | ||||
| /* gcc 4.6 (supports push/pop) */ | /* Check for GCC push/pop pragma support. */ | ||||
| #if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 406)) | #ifdef __GNUC__ | ||||
| # define BLI_MATH_GCC_WARN_PRAGMA 1 | # define BLI_MATH_GCC_WARN_PRAGMA 1 | ||||
| #endif | #endif | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||