diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-09-09 16:23:45 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-09-09 16:23:45 +0400 |
commit | bef9509565e18504ca1a82b4972214a52aedad08 (patch) | |
tree | ec212a7a62142133f9619db2d0232dc89dfe715c /source/blender/blenlib/BLI_math_inline.h | |
parent | 01744abd8187d1566b336bf38033673aa05b6786 (diff) |
Apply small patch by Shane Ambler:
* inline of math funcs for Apple PPC
* eltopo big/little endian ifdef
Diffstat (limited to 'source/blender/blenlib/BLI_math_inline.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_inline.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_inline.h b/source/blender/blenlib/BLI_math_inline.h index 122b2679d5b..4309e6122df 100644 --- a/source/blender/blenlib/BLI_math_inline.h +++ b/source/blender/blenlib/BLI_math_inline.h @@ -45,8 +45,13 @@ extern "C" { #define MALWAYS_INLINE MINLINE #else #define MINLINE static inline +#if (defined(__APPLE__) && defined(__ppc__)) +/* static inline __attribute__ here breaks osx ppc gcc42 build */ +#define MALWAYS_INLINE static __attribute__((always_inline)) +#else #define MALWAYS_INLINE static inline __attribute__((always_inline)) #endif +#endif #else #define MINLINE #define MALWAYS_INLINE |