[Bf-blender-cvs] [d8293fd6be0] blender2.7: Blenlib/Windows: Fix Build error with clang.

Ray Molenkamp noreply at git.blender.org
Sat Feb 16 19:43:48 CET 2019


Commit: d8293fd6be0c3a5a0e615bfd4717ecc36e19bd49
Author: Ray Molenkamp
Date:   Sat Feb 16 11:42:55 2019 -0700
Branches: blender2.7
https://developer.blender.org/rBd8293fd6be0c3a5a0e615bfd4717ecc36e19bd49

Blenlib/Windows: Fix Build error with clang.

__cpuid comes from intrin.h which was implicitly included somewhere
for msvc builds, but not for clang.

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

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

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

diff --git a/source/blender/blenlib/intern/system.c b/source/blender/blenlib/intern/system.c
index 7a1ad41caa6..d6c3ee9f8fa 100644
--- a/source/blender/blenlib/intern/system.c
+++ b/source/blender/blenlib/intern/system.c
@@ -31,6 +31,7 @@
 #if defined(__linux__) || defined(__APPLE__)
 #  include <execinfo.h>
 #elif defined(WIN32)
+#  include <intrin.h>
 #  include <windows.h>
 #  include <dbghelp.h>
 #endif



More information about the Bf-blender-cvs mailing list