fix(build): remove video args if no video

This commit is contained in:
2025-11-23 19:10:57 +01:00
parent 06544ee23e
commit 1bf0bfc558
2 changed files with 16 additions and 2 deletions
+4 -2
View File
@@ -6,8 +6,6 @@
#include <linmath.h>
#ifdef VIDEO_IN
#include <linux/videodev2.h>
#else
struct v4l2_buffer {};
#endif /* VIDEO_IN */
#include <stdbool.h>
#include <sys/time.h>
@@ -134,6 +132,10 @@ typedef struct ShaderProgram {
// video.c
#ifndef VIDEO_IN
struct v4l2_buffer {};
#endif /* VIDEO_IN */
typedef struct VideoCapture {
char name[STR_LEN];
bool error;