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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-12-12 15:33:17 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-12-12 15:33:36 +0400
commitabb7e9f09b9f01a2b3a7b062caa3ef449cc7fb44 (patch)
treec52707fc9d7a2c953ac7ecfff332e60bc8f934ab /intern/atomic
parentb7ac2b1467cd53446e6a14ec3531d23b2269a12f (diff)
Attempt to fix compilation error on Debian armel kernel
Diffstat (limited to 'intern/atomic')
-rw-r--r--intern/atomic/atomic_ops.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/intern/atomic/atomic_ops.h b/intern/atomic/atomic_ops.h
index 243e194102f..b5a73b1ef87 100644
--- a/intern/atomic/atomic_ops.h
+++ b/intern/atomic/atomic_ops.h
@@ -35,10 +35,19 @@
# include <libkern/OSAtomic.h>
#elif defined(_MSC_VER)
# include <windows.h>
+#elif defined(__arm__)
+/* Attempt to fix compilation error on Debian armel kernel.
+ * arm7 architecture does have both 32 and 64bit atomics, however
+ * it's gcc doesn't have __GCC_HAVE_SYNC_COMPARE_AND_SWAP_n defined.
+ */
+# define JE_FORCE_SYNC_COMPARE_AND_SWAP_8
+# define JE_FORCE_SYNC_COMPARE_AND_SWAP_4
#endif
/* needed for int types */
#include "../../source/blender/blenlib/BLI_sys_types.h"
+#include <stdlib.h>
+#include <stddef.h>
/* little macro so inline keyword works */
#if defined(_MSC_VER)