From 796210ecea8270cd870b0ef11833a26bfcf766cd Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 23 Nov 2021 17:23:07 +0000 Subject: v4l2: Convert to pragma once Remove the verbose #ifndef/#define/#endif pattern for maintaining header idempotency, and replace it with a simple #pragma once. This simplifies the headers, and prevents redundant changes when header files get moved. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Jean-Michel Hautbois --- src/v4l2/v4l2_camera_file.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/v4l2/v4l2_camera_file.h') diff --git a/src/v4l2/v4l2_camera_file.h b/src/v4l2/v4l2_camera_file.h index 8f4670a0..6c4cb5d8 100644 --- a/src/v4l2/v4l2_camera_file.h +++ b/src/v4l2/v4l2_camera_file.h @@ -5,8 +5,7 @@ * v4l2_camera_file.h - V4L2 compatibility camera file information */ -#ifndef __V4L2_CAMERA_FILE_H__ -#define __V4L2_CAMERA_FILE_H__ +#pragma once #include @@ -33,5 +32,3 @@ private: int efd_; enum v4l2_priority priority_; }; - -#endif /* __V4L2_CAMERA_FILE_H__ */ -- cgit v1.2.1