[Bf-blender-cvs] [3072507] master: Fix building on NetBSD
Campbell Barton
noreply at git.blender.org
Tue Jul 19 13:59:08 CEST 2016
Commit: 307250723bd97c0fc6e376c7a5d1d5cd104ceed6
Author: Campbell Barton
Date: Tue Jul 19 21:58:36 2016 +1000
Branches: master
https://developer.blender.org/rB307250723bd97c0fc6e376c7a5d1d5cd104ceed6
Fix building on NetBSD
===================================================================
M intern/atomic/intern/atomic_ops_utils.h
===================================================================
diff --git a/intern/atomic/intern/atomic_ops_utils.h b/intern/atomic/intern/atomic_ops_utils.h
index fcbb234..bfec9918 100644
--- a/intern/atomic/intern/atomic_ops_utils.h
+++ b/intern/atomic/intern/atomic_ops_utils.h
@@ -81,7 +81,9 @@
# endif
#endif
-#ifdef UINTPTR_MAX
+#if defined(__SIZEOF_POINTER__)
+# define LG_SIZEOF_PTR __SIZEOF_POINTER__
+#elif defined(UINTPTR_MAX)
# if (UINTPTR_MAX == 0xFFFFFFFF)
# define LG_SIZEOF_PTR 4
# elif (UINTPTR_MAX == 0xFFFFFFFFFFFFFFFF)
More information about the Bf-blender-cvs
mailing list