Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2011-09-09 16:23:45 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2011-09-09 16:23:45 +0400
commitbef9509565e18504ca1a82b4972214a52aedad08 (patch)
treeec212a7a62142133f9619db2d0232dc89dfe715c /source/blender/blenlib
parent01744abd8187d1566b336bf38033673aa05b6786 (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')
-rw-r--r--source/blender/blenlib/BLI_math_inline.h5
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