diff options
author | Ray Molenkamp <github@lazydodo.com> | 2021-10-19 04:01:18 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2021-10-19 04:01:18 +0300 |
commit | 482c5f001449f6bbb57c4d01363600879607099e (patch) | |
tree | 4725d139ecd978bad4278ebe3a896b7c83e487fa | |
parent | c1d138dd926c1d59be1a77576636cd72c512ab6a (diff) |
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.
-rw-r--r-- | source/blender/blenlib/intern/noise.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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> |