1
From: Sergey Sharybin <sergey.vfx@gmail.com>
2
Date: Thu, 12 Dec 2013 14:41:06 +0100
3
Subject: fix_ftbfs_on_armel
6
intern/atomic/atomic_ops.h | 9 +++++++++
7
1 file changed, 9 insertions(+)
9
diff --git a/intern/atomic/atomic_ops.h b/intern/atomic/atomic_ops.h
10
index 243e194..b5a73b1 100644
11
--- a/intern/atomic/atomic_ops.h
12
+++ b/intern/atomic/atomic_ops.h
14
# include <libkern/OSAtomic.h>
15
#elif defined(_MSC_VER)
17
+#elif defined(__arm__)
18
+/* Attempt to fix compilation error on Debian armel kernel.
19
+ * arm7 architecture does have both 32 and 64bit atomics, however
20
+ * it's gcc doesn't have __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n defined.
22
+# define JE_FORCE_SYNC_COMPARE_AND_SWAP_8
23
+# define JE_FORCE_SYNC_COMPARE_AND_SWAP_4
26
/* needed for int types */
27
#include "../../source/blender/blenlib/BLI_sys_types.h"
31
/* little macro so inline keyword works */