[Bf-blender-cvs] [3c1d286] master: Fix building on OSX when OMP is enabled.

Bastien Montagne noreply at git.blender.org
Thu Dec 4 09:56:16 CET 2014


Commit: 3c1d286ca5e059550b7b72feeb466d844ed1dc80
Author: Bastien Montagne
Date:   Thu Dec 4 09:55:17 2014 +0100
Branches: master
https://developer.blender.org/rB3c1d286ca5e059550b7b72feeb466d844ed1dc80

Fix building on OSX when OMP is enabled.

Reported by sebastian_k over IRC, thanks!

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

M	source/blender/editors/sculpt_paint/sculpt.c

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index d2698e0..6df5c14 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -103,6 +103,8 @@
 #if defined(__APPLE__) && defined _OPENMP
 #include <sys/sysctl.h>
 
+#include "BLI_threads.h"
+
 /* Query how many cores not counting HT aka physical cores we've got. */
 static int system_physical_thread_count(void)
 {




More information about the Bf-blender-cvs mailing list