From b426b778c680a266d3c67e866fa07d81011bd16d Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 23 Nov 2021 17:23:07 +0000 Subject: libcamera: pipeline: 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/libcamera/pipeline/raspberrypi/dma_heaps.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/libcamera/pipeline/raspberrypi/dma_heaps.h') diff --git a/src/libcamera/pipeline/raspberrypi/dma_heaps.h b/src/libcamera/pipeline/raspberrypi/dma_heaps.h index 79f39c51..38dfc242 100644 --- a/src/libcamera/pipeline/raspberrypi/dma_heaps.h +++ b/src/libcamera/pipeline/raspberrypi/dma_heaps.h @@ -4,8 +4,8 @@ * * dma_heaps.h - Helper class for dma-heap allocations. */ -#ifndef __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__ -#define __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__ + +#pragma once #include @@ -28,5 +28,3 @@ private: } /* namespace RPi */ } /* namespace libcamera */ - -#endif /* __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__ */ -- cgit v1.2.1