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_proxy.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/v4l2/v4l2_camera_proxy.h') diff --git a/src/v4l2/v4l2_camera_proxy.h b/src/v4l2/v4l2_camera_proxy.h index 56a45bb7..fccec241 100644 --- a/src/v4l2/v4l2_camera_proxy.h +++ b/src/v4l2/v4l2_camera_proxy.h @@ -5,8 +5,7 @@ * v4l2_camera_proxy.h - Proxy to V4L2 compatibility camera */ -#ifndef __V4L2_CAMERA_PROXY_H__ -#define __V4L2_CAMERA_PROXY_H__ +#pragma once #include #include @@ -100,5 +99,3 @@ private: /* This mutex is to serialize access to the proxy. */ libcamera::Mutex proxyMutex_; }; - -#endif /* __V4L2_CAMERA_PROXY_H__ */ -- cgit v1.2.1