fix(build): remove video args if no video
This commit is contained in:
+4
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user