From 63092d12c0f1a1460189cbaacdb1d9f27f935e0e Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sun, 1 Dec 2019 21:55:55 +0100 Subject: [PATCH] src: Fix the build on Mac When compiled on Mac with `clang`, the following error occurs at compile-time: ``` ./diff.hh:56:28: error: no member named 'min' in namespace 'std' const int max_D = std::min((M + N + 1) / 2 + 1, cost_limit); ~~~~~^ ``` --- src/diff.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/diff.hh b/src/diff.hh index 0205ef73..2e719669 100644 --- a/src/diff.hh +++ b/src/diff.hh @@ -7,6 +7,7 @@ #include "array_view.hh" +#include #include #include #include