From patchwork Tue May 26 13:31:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 3858 Return-Path: Received: from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net [195.74.38.228]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7C9F060E08 for ; Tue, 26 May 2020 15:31:22 +0200 (CEST) X-Halon-ID: 21719927-9f55-11ea-80f7-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2392.dip0.t-ipconnect.de [79.202.35.146]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id 21719927-9f55-11ea-80f7-005056917a89; Tue, 26 May 2020 15:31:10 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Tue, 26 May 2020 15:31:05 +0200 Message-Id: <20200526133105.3289924-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: raspberry: Align include guard X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 13:31:22 -0000 The preprocessor directive '#pragma once' is non-standard, replace it with the include guard used elsewhere in libcamera. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/pipeline/raspberrypi/staggered_ctrl.h | 5 ++++- src/libcamera/pipeline/raspberrypi/vcsm.h | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/libcamera/pipeline/raspberrypi/staggered_ctrl.h b/src/libcamera/pipeline/raspberrypi/staggered_ctrl.h index eef16eaac235093c..1076fde3e9ee5d74 100644 --- a/src/libcamera/pipeline/raspberrypi/staggered_ctrl.h +++ b/src/libcamera/pipeline/raspberrypi/staggered_ctrl.h @@ -4,7 +4,8 @@ * * staggered_ctrl.h - Helper for writing staggered ctrls to a V4L2 device. */ -#pragma once +#ifndef __LIBCAMERA_PIPELINE_RASPBERRYPI_STAGGERED_CTRL_H__ +#define __LIBCAMERA_PIPELINE_RASPBERRYPI_STAGGERED_CTRL_H__ #include #include @@ -91,3 +92,5 @@ private: } /* namespace RPi */ } /* namespace libcamera */ + +#endif /* __LIBCAMERA_PIPELINE_RASPBERRYPI_STAGGERED_CTRL_H__ */ diff --git a/src/libcamera/pipeline/raspberrypi/vcsm.h b/src/libcamera/pipeline/raspberrypi/vcsm.h index daa06961e0571e35..e32c258809b7100c 100644 --- a/src/libcamera/pipeline/raspberrypi/vcsm.h +++ b/src/libcamera/pipeline/raspberrypi/vcsm.h @@ -4,7 +4,8 @@ * * vcsm.h - Helper class for vcsm allocations. */ -#pragma once +#ifndef __LIBCAMERA_PIPELINE_RASPBERRYPI_VCSM_H__ +#define __LIBCAMERA_PIPELINE_RASPBERRYPI_VCSM_H__ #include #include @@ -144,3 +145,5 @@ private: }; } /* namespace RPi */ + +#endif /* __LIBCAMERA_PIPELINE_RASPBERRYPI_VCSM_H__ */