From abb7e9f09b9f01a2b3a7b062caa3ef449cc7fb44 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 12 Dec 2013 17:33:17 +0600 Subject: Attempt to fix compilation error on Debian armel kernel --- intern/atomic/atomic_ops.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'intern/atomic') 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 #elif defined(_MSC_VER) # include +#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 +#include /* little macro so inline keyword works */ #if defined(_MSC_VER) -- cgit v1.2.3