From c6e9c750f63bbfcd323287854513d967c57fe0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Tue, 26 May 2020 15:24:50 +0200 Subject: libcamera: raspberrypi: Align include guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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(-) (limited to 'src/libcamera/pipeline/raspberrypi') diff --git a/src/libcamera/pipeline/raspberrypi/staggered_ctrl.h b/src/libcamera/pipeline/raspberrypi/staggered_ctrl.h index eef16eaa..1076fde3 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 daa06961..e32c2588 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__ */ -- cgit v1.2.1