Blame vapoursynth-gcc11.patch

5cfca1c
diff -Naur vapoursynth-R51.old/src/core/exprfilter.cpp vapoursynth-R51/src/core/exprfilter.cpp
5cfca1c
--- vapoursynth-R51.old/src/core/exprfilter.cpp	2021-03-23 14:34:50.273555518 +0100
5cfca1c
+++ vapoursynth-R51/src/core/exprfilter.cpp	2021-03-23 14:36:17.148054372 +0100
92baa57
@@ -32,6 +32,7 @@
92baa57
 #include <unordered_map>
92baa57
 #include <unordered_set>
92baa57
 #include <vector>
92baa57
+#include <limits>
92baa57
 #include "VapourSynth.h"
92baa57
 #include "VSHelper.h"
92baa57
 #include "cpufeatures.h"
5cfca1c
diff -Naur vapoursynth-R51.old/src/core/genericfilters.cpp vapoursynth-R51/src/core/genericfilters.cpp
5cfca1c
--- vapoursynth-R51.old/src/core/genericfilters.cpp	2021-03-23 14:34:50.273555518 +0100
5cfca1c
+++ vapoursynth-R51/src/core/genericfilters.cpp	2021-03-23 14:36:17.149054389 +0100
92baa57
@@ -28,6 +28,7 @@
92baa57
 #include <array>
92baa57
 #include <memory>
92baa57
 #include <vector>
92baa57
+#include <limits>
92baa57
 #include <VapourSynth.h>
92baa57
 #include <VSHelper.h>
92baa57
 #include "cpufeatures.h"
5cfca1c
diff -Naur vapoursynth-R51.old/src/core/kernel/generic.cpp vapoursynth-R51/src/core/kernel/generic.cpp
5cfca1c
--- vapoursynth-R51.old/src/core/kernel/generic.cpp	2021-03-23 14:34:50.273555518 +0100
5cfca1c
+++ vapoursynth-R51/src/core/kernel/generic.cpp	2021-03-23 14:36:17.149054389 +0100
92baa57
@@ -22,6 +22,7 @@
92baa57
 #include <array>
92baa57
 #include <cmath>
92baa57
 #include <cstdint>
92baa57
+#include <limits>
92baa57
 #include <type_traits>
92baa57
 #include "generic.h"
92baa57
 
5cfca1c
diff -Naur vapoursynth-R51.old/src/filters/misc/miscfilters.cpp vapoursynth-R51/src/filters/misc/miscfilters.cpp
5cfca1c
--- vapoursynth-R51.old/src/filters/misc/miscfilters.cpp	2021-03-23 14:34:50.276555570 +0100
5cfca1c
+++ vapoursynth-R51/src/filters/misc/miscfilters.cpp	2021-03-23 14:36:17.150054407 +0100
5cfca1c
@@ -26,6 +26,7 @@
92baa57
 #include <memory>
5cfca1c
 #include <stdexcept>
92baa57
 #include <vector>
92baa57
+#include <limits>
92baa57
 #include <VapourSynth.h>
92baa57
 #include <VSHelper.h>
92baa57
 #include "../src/core/filtersharedcpp.h"
5cfca1c
diff -Naur vapoursynth-R51.old/src/filters/removegrain/clense.cpp vapoursynth-R51/src/filters/removegrain/clense.cpp
5cfca1c
--- vapoursynth-R51.old/src/filters/removegrain/clense.cpp	2021-03-23 14:34:50.276555570 +0100
5cfca1c
+++ vapoursynth-R51/src/filters/removegrain/clense.cpp	2021-03-23 14:36:17.150054407 +0100
5cfca1c
@@ -26,6 +26,7 @@
92baa57
 */
92baa57
 
92baa57
 #include "shared.h"
92baa57
+#include <limits>
92baa57
 
92baa57
 #define CLENSE_RETERROR(x) do { vsapi->setError(out, (x)); vsapi->freeNode(d.cnode); vsapi->freeNode(d.pnode); vsapi->freeNode(d.nnode); return; } while (0)
92baa57
 #define CLAMP(value, lower, upper) do { if (value < lower) value = lower; else if (value > upper) value = upper; } while(0)