v4l2-compliance: Fix building against libc++
PATCH 1/1 v4l2-compliance: Fix building against libc++
v4l2-test-time32-64.cpp included compiler.h, which checks _LIBCPP_VERSION. This only works against libc++ when a C++ header has already been included, which wasn't the case here.
v4l2-test-time32-64.cpp doesn't need to include compiler.h anyway, so just drop the include.
Signed-off-by James Le Cuirot <[email protected]>
--- utils/v4l2-compliance/v4l2-test-time32-64.cpp | 1 - 1 file changed, 1 deletion(-)
utils/v4l2-compliance/v4l2-test-time32-64.cpp +0 -1
@@ -16,7 +16,6 @@ #include <sys/types.h> -#include "compiler.h" #include "v4l2-compliance.h" typedef __s32 old_time32_t;
Signature · 1 line
2.43.0
Quoted 17 lines · James Le Cuirot
v4l2-test-time32-64.cpp included
compiler.h, which checks_LIBCPP_VERSION. This only works against libc++ when a C++ header has already been included, which wasn't the case here.v4l2-test-time32-64.cpp doesn't need to include
compiler.hanyway, so just drop the include.Signed-off-by James Le Cuirot <[email protected]>--- utils/v4l2-compliance/v4l2-test-time32-64.cpp | 1 - 1 file changed, 1 deletion(-)utils/v4l2-compliance/v4l2-test-time32-64.cpp +0
-0
utils/v4l2-compliance/v4l2-test-time32-64.cpp line 21
Quoted 7 lines
utils/v4l2-compliance/v4l2-test-time32-64.cpp +0
-1@@ -16,7 +16,6 @@ #include <sys/types.h> -#include "compiler.h" #include "v4l2-compliance.h" typedef __s32 old_time32_t;
Sorry, ignore this patch. I'll write a better one soon.