From: Thomas Debesse Date: Wed, 25 Dec 2019 19:22:59 +0000 (+0100) Subject: crn_rgba: use “algorithm” header to avoid std::min/max being unknown X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d99b6f34042d3ae680895fb2075c84aa949e8167;p=xonotic%2Fnetradiant.git crn_rgba: use “algorithm” header to avoid std::min/max being unknown avoid this error on some systems (Clang on macOS or FreeBSD): netradiant/libs/crnrgba/crn_rgba.cpp:93:38: error: no member named 'max' in namespace 'std' const crn_uint32 blocks_x = std::max(1U, (ti.m_width + 3) >> 2); --- diff --git a/libs/crnrgba/crn_rgba.cpp b/libs/crnrgba/crn_rgba.cpp index 8dec126f..012b95fb 100644 --- a/libs/crnrgba/crn_rgba.cpp +++ b/libs/crnrgba/crn_rgba.cpp @@ -25,7 +25,7 @@ #include #include - +#include #include "ddslib.h" #include "../crunch/inc/crn_decomp.h"