From f865b648e9504bc9d56ba410e6f03e3f900d866a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 9 Jun 2024 19:03:22 +0200 Subject: [PATCH] fix compilation by including header in which std::find is defined Compilation breaks when the `algorithm` header isn't included indirectly anymore. This happens with certain combinations of compiler/C++ library/C++ mode, e.g. clang++ 17/libstdc++ 14.1/C++20 --- src/KaxCues.cpp | 1 + src/KaxSeekHead.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/KaxCues.cpp b/src/KaxCues.cpp index 3c1bdf4a..e24c83ed 100644 --- a/src/KaxCues.cpp +++ b/src/KaxCues.cpp @@ -5,6 +5,7 @@ \file \author Steve Lhomme */ +#include #include #include "matroska/KaxCues.h" diff --git a/src/KaxSeekHead.cpp b/src/KaxSeekHead.cpp index 971c2421..552ca679 100644 --- a/src/KaxSeekHead.cpp +++ b/src/KaxSeekHead.cpp @@ -5,6 +5,8 @@ \file \author Steve Lhomme */ +#include + #include "matroska/KaxSeekHead.h" #include "matroska/KaxContexts.h" #include "matroska/KaxSegment.h"