From: Adam Stylinski Date: Sun, 5 Jul 2026 15:31:23 +0000 (-0400) Subject: Fix this compilation issue for non-windows machines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=974367f5fb31bc07beac2a7f310f492840356b63;p=thirdparty%2Fzlib-ng.git Fix this compilation issue for non-windows machines I've been manually fixing this up for a bit. We're on C++ so let's just use STL's functions here, which should compile down to min and max instructions. --- diff --git a/test/benchmarks/benchmark_png_shared.h b/test/benchmarks/benchmark_png_shared.h index 179a5442f..ef60ce1bf 100644 --- a/test/benchmarks/benchmark_png_shared.h +++ b/test/benchmarks/benchmark_png_shared.h @@ -11,6 +11,9 @@ extern "C" { # include } +#define MAX(a, b) std::max(a, b) +#define MIN(a, b) std::min(a, b) + typedef struct _png_dat { uint8_t *buf; int64_t len;