[Bf-blender-cvs] [94a3ee56c7a] master: Fix MSVSC2017 error

Antonio Vazquez noreply at git.blender.org
Wed Dec 20 10:23:28 CET 2017


Commit: 94a3ee56c7a4d7e76daaed821988741296fb2c8f
Author: Antonio Vazquez
Date:   Wed Dec 20 10:23:12 2017 +0100
Branches: master
https://developer.blender.org/rB94a3ee56c7a4d7e76daaed821988741296fb2c8f

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 d96cf969dae..37fdcd7878a 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 int bitscan_forward_i(int a)



More information about the Bf-blender-cvs mailing list