]> git.rm.cloudns.org Git - xonotic/netradiant.git/commit
crn_rgba: use “algorithm” header to avoid std::min/max being unknown
authorThomas Debesse <dev@illwieckz.net>
Wed, 25 Dec 2019 19:22:59 +0000 (20:22 +0100)
committerThomas Debesse <dev@illwieckz.net>
Wed, 25 Dec 2019 20:27:09 +0000 (21:27 +0100)
commitd99b6f34042d3ae680895fb2075c84aa949e8167
tree7332fc4e3cd918f6aa5c3ac2076080133d3b785e
parent863f0c456612fb427cafb1a50c180c3705351129
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);
libs/crnrgba/crn_rgba.cpp