HomeOfVapourSynthEvolution / VapourSynth-Bwdif

Bwdif filter for VapourSynth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing cstddef include for linux build (with patch)

marillat opened this issue · comments

commented

The build fail with:

../Bwdif/Bwdif_AVX2.cpp:186:246: note: ‘ptrdiff_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
../Bwdif/Bwdif_AVX2.cpp:186:271: error: ‘ptrdiff_t’ does not name a type
  186 | template void filterLine_avx2<float, false>(const void* _prev2, const void* _prev, const void* _cur, const void* _next, const void* _next2, const void* _edeint, void* _dst, const int width, const ptrdiff_t stride, const ptrdiff_t stride2, const ptrdiff_t stride3, const ptrdiff_t stride4, const int step, const int peak) noexcept;

This patch fix this issue

--- a/Bwdif/Bwdif.h
+++ b/Bwdif/Bwdif.h
@@ -1,6 +1,7 @@
 #pragma once
 
 #include <type_traits>
+#include <cstddef>
 
 #ifdef BWDIF_X86
 #include "VCL2/vectorclass.h"

Thanks.