mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-16 17:05:08 +03:00
libcamera: internal: 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. Tracepoints.h.in is not modified to use the pragma as it requires self-inclusion. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
This commit is contained in:
parent
0701f756b9
commit
df131ad088
33 changed files with 64 additions and 132 deletions
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* pipeline_handler.h - Pipeline handler infrastructure
|
||||
*/
|
||||
#ifndef __LIBCAMERA_INTERNAL_PIPELINE_HANDLER_H__
|
||||
#define __LIBCAMERA_INTERNAL_PIPELINE_HANDLER_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <set>
|
||||
|
@ -118,5 +118,3 @@ private: \
|
|||
static handler##Factory global_##handler##Factory;
|
||||
|
||||
} /* namespace libcamera */
|
||||
|
||||
#endif /* __LIBCAMERA_INTERNAL_PIPELINE_HANDLER_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue