[Bf-blender-cvs] [482c5f00144] master: Fix: Build error with MSVC

Ray Molenkamp noreply at git.blender.org
Tue Oct 19 03:01:24 CEST 2021


Commit: 482c5f001449f6bbb57c4d01363600879607099e
Author: Ray Molenkamp
Date:   Mon Oct 18 19:01:18 2021 -0600
Branches: master
https://developer.blender.org/rB482c5f001449f6bbb57c4d01363600879607099e

Fix: Build error with MSVC

noise.cc uses std::min and std::max without
including the algorithm header required.

Newer MSVC versions and GCC implicitly include
it somewhere, which isn't something we should
count on. Best to include what you use.

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

M	source/blender/blenlib/intern/noise.cc

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

diff --git a/source/blender/blenlib/intern/noise.cc b/source/blender/blenlib/intern/noise.cc
index 812e6ddd181..58b6bb638e9 100644
--- a/source/blender/blenlib/intern/noise.cc
+++ b/source/blender/blenlib/intern/noise.cc
@@ -46,6 +46,7 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
+#include <algorithm>
 #include <cmath>
 #include <cstdint>



More information about the Bf-blender-cvs mailing list