[Bf-blender-cvs] [405874bd79b] blender-v2.79a-release: Fix MSVSC2017 error

Antonio Vazquez noreply at git.blender.org
Mon Jan 8 17:23:52 CET 2018


Commit: 405874bd79b4e9fbc6b2d4534997038367b47d42
Author: Antonio Vazquez
Date:   Wed Dec 20 10:23:12 2017 +0100
Branches: blender-v2.79a-release
https://developer.blender.org/rB405874bd79b4e9fbc6b2d4534997038367b47d42

Fix MSVSC2017 error

The last compiler version needs this include

===================================================================

M	source/blender/blenlib/intern/math_bits_inline.c

===================================================================

diff --git a/source/blender/blenlib/intern/math_bits_inline.c b/source/blender/blenlib/intern/math_bits_inline.c
index 82d7e2114c2..37abfc6542d 100644
--- a/source/blender/blenlib/intern/math_bits_inline.c
+++ b/source/blender/blenlib/intern/math_bits_inline.c
@@ -25,6 +25,10 @@
 #ifndef __MATH_BITS_INLINE_C__
 #define __MATH_BITS_INLINE_C__
 
+#ifdef _MSC_VER
+#  include <intrin.h>
+#endif
+
 #include "BLI_math_bits.h"
 
 MINLINE unsigned int highest_order_bit_i(unsigned int n)



More information about the Bf-blender-cvs mailing list