From c3f09c06cb362b716a4fcb5b2de8f1e256bcce91 Mon Sep 17 00:00:00 2001 From: "Matteo F. Vescovi" Date: Thu, 24 Jul 2014 11:29:04 +0200 Subject: Fix atomix operations on unofficial 64bit archs --- intern/atomic/atomic_ops.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/intern/atomic/atomic_ops.h b/intern/atomic/atomic_ops.h index bb55ac1a11f..127552f8bd4 100644 --- a/intern/atomic/atomic_ops.h +++ b/intern/atomic/atomic_ops.h @@ -61,7 +61,10 @@ # endif #endif -#if defined(_M_X64) || defined(__amd64__) || defined(__x86_64__) || defined(__s390x__) || defined(__powerpc64__) || defined(__aarch64__) || (defined(__sparc__) && defined(__arch64__)) +/* This is becoming a bit nastier that it was originally foreseen, + * consider using autoconfig detection instead. + */ +#if defined(_M_X64) || defined(__amd64__) || defined(__x86_64__) || defined(__s390x__) || defined(__powerpc64__) || defined(__aarch64__) || (defined(__sparc__) && defined(__arch64__)) || defined(__alpha__) || defined(__mips64) # define LG_SIZEOF_PTR 3 # define LG_SIZEOF_INT 2 #else -- cgit v1.2.3